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

Do not fill currentToken for operators and remove useless assignment

上级 e2e8736a
...@@ -3990,16 +3990,13 @@ public class Parser { ...@@ -3990,16 +3990,13 @@ public class Parser {
case CHAR_SPECIAL_2: case CHAR_SPECIAL_2:
if (types[i] == CHAR_SPECIAL_2) { if (types[i] == CHAR_SPECIAL_2) {
char c1 = chars[i++]; char c1 = chars[i++];
currentToken = sqlCommand.substring(start, i);
currentTokenType = getSpecialType2(c, c1); currentTokenType = getSpecialType2(c, c1);
} else { } else {
currentToken = sqlCommand.substring(start, i);
currentTokenType = getSpecialType1(c); currentTokenType = getSpecialType1(c);
} }
parseIndex = i; parseIndex = i;
return; return;
case CHAR_SPECIAL_1: case CHAR_SPECIAL_1:
currentToken = sqlCommand.substring(start, i);
currentTokenType = getSpecialType1(c); currentTokenType = getSpecialType1(c);
parseIndex = i; parseIndex = i;
return; return;
...@@ -4101,7 +4098,6 @@ public class Parser { ...@@ -4101,7 +4098,6 @@ public class Parser {
return; return;
} }
case CHAR_END: case CHAR_END:
currentToken = "";
currentTokenType = END; currentTokenType = END;
parseIndex = i; parseIndex = i;
return; return;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论