Skip to content
New issue

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

Support ALTER TABLE .. ADD CHECK statements #5

Open
jonahgeorge opened this issue Sep 12, 2019 · 1 comment
Open

Support ALTER TABLE .. ADD CHECK statements #5

jonahgeorge opened this issue Sep 12, 2019 · 1 comment

Comments

@jonahgeorge
Copy link
Contributor

It appears that SQL statements of the following form are failing:

ALTER TABLE test1.test2 ADD CHECK (active IN (0, 1));
line 22 column 34 near \"CHECK (`active` in (0,1))\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4\"

This error is occurring within pingcap/parser on the currently pinned version; however, this is supported in the latest version

@jonahgeorge
Copy link
Contributor Author

This requires updating to the latest TIDB and pingcap/parser version. Unfortunately that version removes support for parsing gbk charsets and also changes the default column size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant