[#8602] Add support for DB2 translate
This commit is contained in:
parent
8ede6ac357
commit
034c2db718
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
|
||||
@ -44,6 +44,7 @@ import static java.util.Collections.singletonList;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.conf.ParseWithMetaLookups.IGNORE_ON_FAILURE;
|
||||
import static org.jooq.conf.ParseWithMetaLookups.THROW_ON_FAILURE;
|
||||
import static org.jooq.impl.DSL.abs;
|
||||
@ -6906,6 +6907,12 @@ final class ParserImpl implements Parser {
|
||||
parse(ctx, ',');
|
||||
Field<String> f3 = (Field) parseField(ctx, S);
|
||||
parse(ctx, ')');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return translate(f1, f2, f3);
|
||||
}
|
||||
|
||||
|
||||
@ -64,6 +64,10 @@ final class Translate extends AbstractFunction<String> {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
return function("translate", getDataType(), getArguments());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user