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:
@@ -428,7 +428,7 @@ public class SQLUtils {
|
||||
SQLStatementParser parser = SQLParserUtils.createSQLStatementParser(sql, dbType, keepComments);
|
||||
List<SQLStatement> stmtList = parser.parseStatementList();
|
||||
if (parser.getLexer().token() != Token.EOF) {
|
||||
throw new ParserException("syntax error : " + sql);
|
||||
throw new ParserException("syntax error. " + sql);
|
||||
}
|
||||
return stmtList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user