[#8602] Add support for DB2 translate

This commit is contained in:
lukaseder 2019-05-06 12:55:56 +02:00
parent 8ede6ac357
commit 034c2db718
3 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,7 @@
*/
package org.jooq;
// ...
// ...
// ...
import static org.jooq.SQLDialect.MARIADB;

View File

@ -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);
}

View File

@ -64,6 +64,10 @@ final class Translate extends AbstractFunction<String> {
default:
return function("translate", getDataType(), getArguments());
}