mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser. for issue #2488
This commit is contained in:
@@ -2421,6 +2421,10 @@ public class MySqlStatementParser extends SQLStatementParser {
|
||||
lexer.nextToken();
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.LINE_COMMENT) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
|
||||
tableName = this.exprParser.name();
|
||||
stmt.setTableName(tableName);
|
||||
|
||||
@@ -2540,6 +2544,10 @@ public class MySqlStatementParser extends SQLStatementParser {
|
||||
}
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.LINE_COMMENT) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.VALUES || lexer.identifierEquals(FnvHash.Constants.VALUE)) {
|
||||
lexer.nextTokenLParen();
|
||||
parseValueClause(stmt.getValuesList(), columnSize, stmt);
|
||||
|
||||
Reference in New Issue
Block a user