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

SQLite and MySQL parser to understand CHECK with parens #123

Merged
merged 7 commits into from
Apr 6, 2020

Conversation

mohawk2
Copy link
Contributor

@mohawk2 mohawk2 commented Jan 4, 2020

Currently, the SQLite parser fails on CHECK constraints that are effectively enums. This fixes that.

@mohawk2 mohawk2 changed the title SQLite parser to understand CHECK with parens SQLite and MySQL parser to understand CHECK with parens Feb 29, 2020
@mohawk2
Copy link
Contributor Author

mohawk2 commented Feb 29, 2020

Now also fixes similar but worse problem with Parser::MySQL, which didn't understand CHECK constraints. and now does, as reported by TBSliver.

@mohawk2
Copy link
Contributor Author

mohawk2 commented Mar 7, 2020

And now also supports MariaDB's defaults that can be other columns.

@TBSliver
Copy link

Woo! looks good and works for both my test case and production SQL - excellent :D

@dbsrgits-sync dbsrgits-sync merged commit 70aafee into dbsrgits:master Apr 6, 2020
@mohawk2 mohawk2 deleted the sqlite-constraints branch April 6, 2020 22:39
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

Successfully merging this pull request may close these issues.

None yet

3 participants