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:
@@ -620,7 +620,7 @@ public class SQLExprParser extends SQLParser {
|
||||
sqlExpr = new SQLBooleanExpr(false);
|
||||
break;
|
||||
default:
|
||||
throw new ParserException("ERROR. token : " + tok + ", pos : " + lexer.pos());
|
||||
throw new ParserException("ERROR" + lexer.info());
|
||||
}
|
||||
|
||||
SQLExpr expr = primaryRest(sqlExpr);
|
||||
@@ -2253,6 +2253,7 @@ public class SQLExprParser extends SQLParser {
|
||||
}
|
||||
} else if (lexer.token() == Token.DO || lexer.token() == Token.JOIN) {
|
||||
expr = this.name();
|
||||
expr = this.exprRest(expr);
|
||||
} else {
|
||||
expr = expr();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user