mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved odps parser
This commit is contained in:
@@ -197,7 +197,7 @@ public class SQLParser {
|
||||
|| lexer.identifierEquals(FnvHash.Constants.ANTI)
|
||||
|| lexer.identifierEquals(FnvHash.Constants.SEMI)) {
|
||||
lexer.reset(mark);
|
||||
break;
|
||||
return null;
|
||||
} else {
|
||||
return strVal;
|
||||
}
|
||||
|
||||
@@ -4735,7 +4735,7 @@ public class SQLStatementParser extends SQLParser {
|
||||
this.parseStatementList(list, 1, null);
|
||||
if (tryBest) {
|
||||
if (lexer.token != Token.EOF) {
|
||||
throw new ParserException("sql syntax error, no terminated. " + lexer.token);
|
||||
throw new ParserException("sql syntax error, no terminated. " + lexer.info());
|
||||
}
|
||||
}
|
||||
return list.get(0);
|
||||
|
||||
Reference in New Issue
Block a user