sql parser improved db2 support

This commit is contained in:
高铁
2016-03-18 16:34:02 +08:00
parent 793658499e
commit bf1ad5da0c
5 changed files with 122 additions and 0 deletions
@@ -1036,6 +1036,12 @@ public class SQLExprParser extends SQLParser {
}
over.setOrderBy(parseOrderBy());
if (lexer.token() == Token.OF) {
lexer.nextToken();
SQLExpr of = this.expr();
over.setOf(of);
}
accept(Token.RPAREN);
aggregateExpr.setOver(over);