Merge pull request #4 from alibaba/master

同步最新代码
This commit is contained in:
raysonfang
2020-11-05 17:40:40 +08:00
committed by GitHub
11 changed files with 381 additions and 49 deletions
@@ -3738,9 +3738,13 @@ public class SQLExprParser extends SQLParser {
if (lexer.token == Token.LPAREN) {
lexer.nextToken();
SQLExpr arg = this.expr();
arg.setParent(charType);
charType.addArgument(arg);
if (typeNameHashCode == FnvHash.Constants.ENUM) {
exprList(charType.getArguments(), charType);
} else {
SQLExpr arg = this.expr();
arg.setParent(charType);
charType.addArgument(arg);
}
accept(Token.RPAREN);
}
@@ -3910,6 +3914,7 @@ public class SQLExprParser extends SQLParser {
|| hash == FnvHash.Constants.TEXT
|| hash == FnvHash.Constants.MEDIUMTEXT
|| hash == FnvHash.Constants.LONGTEXT
|| hash == FnvHash.Constants.ENUM
;
}