parent
1c220d75d0
commit
e15968091d
@ -4310,6 +4310,8 @@ final class ParserImpl implements Parser {
|
||||
return field;
|
||||
else if ((field = parseFieldTranslateIf(ctx)) != null)
|
||||
return field;
|
||||
else if ((field = parseFieldToCharIf(ctx)) != null)
|
||||
return field;
|
||||
|
||||
if (N.is(type))
|
||||
if (parseFunctionNameIf(ctx, "TANH"))
|
||||
@ -5034,6 +5036,17 @@ final class ParserImpl implements Parser {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final Field<?> parseFieldToCharIf(ParserContext ctx) {
|
||||
if (parseFunctionNameIf(ctx, "TO_CHAR")) {
|
||||
parse(ctx, '(');
|
||||
Field<String> f1 = (Field) parseField(ctx);
|
||||
parse(ctx, ')');
|
||||
return cast(f1, SQLDataType.VARCHAR);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final Field<?> parseFieldToNumberIf(ParserContext ctx) {
|
||||
if (parseFunctionNameIf(ctx, "TO_NUMBER")) {
|
||||
parse(ctx, '(');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user