improved sql parser.

This commit is contained in:
wenshao
2017-10-11 21:03:12 +08:00
parent 7f630d879f
commit f871924269
2 changed files with 128 additions and 1 deletions
@@ -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);
}