提交 2d39d528 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Minor change in Parser.readCondition()

上级 dd717e08
...@@ -2748,16 +2748,13 @@ public class Parser { ...@@ -2748,16 +2748,13 @@ public class Parser {
// special case: NOT NULL is not part of an expression (as in CREATE // special case: NOT NULL is not part of an expression (as in CREATE
// TABLE TEST(ID INT DEFAULT 0 NOT NULL)) // TABLE TEST(ID INT DEFAULT 0 NOT NULL))
int backup = parseIndex; int backup = parseIndex;
boolean not = false; boolean not = readIf(NOT);
if (readIf(NOT)) { if (not && isToken(NULL)) {
not = true; // this really only works for NOT NULL!
if (isToken(NULL)) { parseIndex = backup;
// this really only works for NOT NULL! currentToken = "NOT";
parseIndex = backup; currentTokenType = NOT;
currentToken = "NOT"; break;
currentTokenType = NOT;
break;
}
} }
if (readIf(LIKE)) { if (readIf(LIKE)) {
Expression b = readConcat(); Expression b = readConcat();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论