mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -1048,7 +1048,10 @@ public class SQLExprParser extends SQLParser {
|
||||
}
|
||||
|
||||
if (lexer.token == Token.LPAREN) {
|
||||
expr = methodRest(expr, name, false);
|
||||
boolean aggregate = hash_lower == FnvHash.Constants.WM_CONCAT
|
||||
&& expr instanceof SQLIdentifierExpr
|
||||
&& ((SQLIdentifierExpr) expr).nameHashCode64() == FnvHash.Constants.WMSYS;
|
||||
expr = methodRest(expr, name, aggregate);
|
||||
} else {
|
||||
expr = new SQLPropertyExpr(expr, name, hash_lower);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user