提交 b606d039 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Minor changes

上级 700e274a
...@@ -3691,6 +3691,7 @@ public class Parser { ...@@ -3691,6 +3691,7 @@ public class Parser {
private boolean readBooleanSetting() { private boolean readBooleanSetting() {
switch (currentTokenType) { switch (currentTokenType) {
case ON:
case TRUE: case TRUE:
read(); read();
return true; return true;
...@@ -3702,9 +3703,7 @@ public class Parser { ...@@ -3702,9 +3703,7 @@ public class Parser {
read(); read();
return result; return result;
} }
if (readIf(ON)) { if (readIf("OFF")) {
return true;
} else if (readIf("OFF")) {
return false; return false;
} else { } else {
throw getSyntaxError(); throw getSyntaxError();
...@@ -3740,7 +3739,7 @@ public class Parser { ...@@ -3740,7 +3739,7 @@ public class Parser {
} }
if (currentTokenType == DOT) { if (currentTokenType == DOT) {
if (equalsToken(schemaName, database.getShortName())) { if (equalsToken(schemaName, database.getShortName())) {
read(DOT); read();
schemaName = s; schemaName = s;
if (currentTokenType != IDENTIFIER) { if (currentTokenType != IDENTIFIER) {
throw DbException.getSyntaxError(sqlCommand, parseIndex, throw DbException.getSyntaxError(sqlCommand, parseIndex,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论