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

Minor change in Parser.readCondition()

上级 dd717e08
...@@ -2748,17 +2748,14 @@ public class Parser { ...@@ -2748,17 +2748,14 @@ 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;
if (isToken(NULL)) {
// this really only works for NOT NULL! // this really only works for NOT NULL!
parseIndex = backup; parseIndex = backup;
currentToken = "NOT"; currentToken = "NOT";
currentTokenType = NOT; currentTokenType = NOT;
break; break;
} }
}
if (readIf(LIKE)) { if (readIf(LIKE)) {
Expression b = readConcat(); Expression b = readConcat();
Expression esc = null; Expression esc = null;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论