improved mysql & pg parser. for issue #2483

This commit is contained in:
wenshao
2018-04-12 20:39:29 +08:00
parent 8681b7a7cd
commit b84e7b946a
8 changed files with 291 additions and 14 deletions
@@ -180,7 +180,7 @@ public class PGExprParser extends SQLExprParser {
if (expr.getClass() == SQLIdentifierExpr.class) {
String ident = ((SQLIdentifierExpr)expr).getName();
if (lexer.token() == Token.COMMA) {
if (lexer.token() == Token.COMMA || lexer.token() == Token.RPAREN) {
return super.primaryRest(expr);
}