bug fixed for issue #2658

This commit is contained in:
wenshao
2018-07-16 14:44:56 +08:00
parent 00a9b92ca1
commit 6572e9a20c
6 changed files with 59 additions and 2 deletions
@@ -334,4 +334,15 @@ public class PGExprParser extends SQLExprParser {
}
return alias;
}
protected void filter(SQLAggregateExpr x) {
if (lexer.identifierEquals(FnvHash.Constants.FILTER)) {
lexer.nextToken();
accept(Token.LPAREN);
accept(Token.WHERE);
SQLExpr filter = this.expr();
accept(Token.RPAREN);
x.setFilter(filter);
}
}
}