improved postgresql parser, fix #4221

This commit is contained in:
高铁
2021-04-02 22:12:53 +08:00
parent 2b48f09430
commit 24eb08e008
3 changed files with 11 additions and 0 deletions
@@ -1584,6 +1584,9 @@ public class SQLExprParser extends SQLParser {
aggregateExpr.setOption(SQLAggregateOption.DISTINCT);
}
if (lexer.token == Token.COLONCOLON) {
return primaryRest(aggregateExpr);
}
return aggregateExpr;
}