提交 2fff842b authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved error message for syntax error: the list of expected tokens was…

Improved error message for syntax error: the list of expected tokens was sometimes not set correctly.
上级 232ba70f
...@@ -2758,7 +2758,8 @@ public class Parser { ...@@ -2758,7 +2758,8 @@ public class Parser {
private void read(String expected) { private void read(String expected) {
if (currentTokenQuoted || !equalsToken(expected, currentToken)) { if (currentTokenQuoted || !equalsToken(expected, currentToken)) {
throw DbException.getSyntaxError(sqlCommand, parseIndex, expected); addExpected(expected);
throw getSyntaxError();
} }
read(); read();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论