We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CREATE TABLE
CHECK
NOT NULL
Example SQL:
create table t123 (c1 varchar(5) check (c1 in ('v1', 'v2')) NOT NULL);
This works in MySQL but fails to parse in Dolt with the error "syntax error at position 69 near 'NULL'"
This is most likely happening because the grammar for CHECK expressions is [CONSTRAINT [symbol]] CHECK (expr) [[NOT] ENFORCED]
[CONSTRAINT [symbol]] CHECK (expr) [[NOT] ENFORCED]
Dolt uses an LL1 parser that is likely assuming that the NOT is part of the check expression and is expecting it to be followed by ENFORCED.
NOT
ENFORCED
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Example SQL:
This works in MySQL but fails to parse in Dolt with the error "syntax error at position 69 near 'NULL'"
This is most likely happening because the grammar for
CHECK
expressions is[CONSTRAINT [symbol]] CHECK (expr) [[NOT] ENFORCED]
Dolt uses an LL1 parser that is likely assuming that the
NOT
is part of the check expression and is expecting it to be followed byENFORCED
.The text was updated successfully, but these errors were encountered: