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:
@@ -659,7 +659,7 @@ public class SQLExprParser extends SQLParser {
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new ParserException("ERROR" + lexer.info());
|
||||
throw new ParserException("ERROR. " + lexer.info());
|
||||
}
|
||||
|
||||
SQLExpr expr = primaryRest(sqlExpr);
|
||||
@@ -882,6 +882,12 @@ public class SQLExprParser extends SQLParser {
|
||||
methodInvokeExpr.setFrom(from);
|
||||
}
|
||||
|
||||
if (lexer.token == Token.USING) {
|
||||
lexer.nextToken();
|
||||
SQLExpr using = this.primary();
|
||||
methodInvokeExpr.setUsing(using);
|
||||
}
|
||||
|
||||
accept(Token.RPAREN);
|
||||
|
||||
if (lexer.token() == Token.OVER) {
|
||||
|
||||
Reference in New Issue
Block a user