[jOOQ/jOOQ#9775] Parse NOT NULL ENABLE syntax

This commit is contained in:
Lukas Eder 2020-03-05 14:47:39 +01:00
parent a92b633f76
commit d70e534bf3

View File

@ -3532,7 +3532,7 @@ final class ParserImpl implements Parser {
nullable = true;
continue;
}
else if (parseKeywordIf(ctx, "NOT NULL")) {
else if (parseKeywordIf(ctx, "NOT NULL") && (parseKeywordIf(ctx, "ENABLE") || true)) {
type = type.nullable(false);
nullable = true;
continue;
@ -4171,7 +4171,7 @@ final class ParserImpl implements Parser {
if (parseKeywordIf(ctx, "NULL"))
type = type.nullable(true);
else if (parseKeywordIf(ctx, "NOT NULL"))
else if (parseKeywordIf(ctx, "NOT NULL") && (parseKeywordIf(ctx, "ENABLE") || true))
type = type.nullable(false);
if (paren)