[#5955] Support LCASE and UCASE synonyms

This commit is contained in:
lukaseder 2017-04-22 12:48:23 +02:00
parent 7116d957d6
commit 551429d66f

View File

@ -3609,7 +3609,7 @@ class ParserImpl implements Parser {
}
private static final Field<?> parseFieldLowerIf(ParserContext ctx) {
if (parseKeywordIf(ctx, "LOWER")) {
if (parseKeywordIf(ctx, "LOWER") || parseKeywordIf(ctx, "LCASE")) {
parse(ctx, '(');
Field<String> f1 = (Field) parseField(ctx, S);
parse(ctx, ')');
@ -3620,7 +3620,7 @@ class ParserImpl implements Parser {
}
private static final Field<?> parseFieldUpperIf(ParserContext ctx) {
if (parseKeywordIf(ctx, "UPPER")) {
if (parseKeywordIf(ctx, "UPPER") || parseKeywordIf(ctx, "UCASE")) {
parse(ctx, '(');
Field<String> f1 = (Field) parseField(ctx, S);
parse(ctx, ')');