mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved exception message info
This commit is contained in:
@@ -565,7 +565,7 @@ public class SQLUtils {
|
||||
List<SQLStatement> stmtList = new ArrayList<SQLStatement>();
|
||||
parser.parseStatementList(stmtList, -1, null);
|
||||
if (parser.getLexer().token() != Token.EOF) {
|
||||
throw new ParserException("syntax error : " + sql);
|
||||
throw new ParserException("syntax error : " + parser.getLexer().info());
|
||||
}
|
||||
return stmtList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user