improved exception message info

This commit is contained in:
shaojin.wensj
2022-03-20 13:52:46 +08:00
parent 8268181987
commit 239c74ee68
@@ -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;
}