mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for issue #2658
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user