-
Notifications
You must be signed in to change notification settings - Fork 42
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
Parsing of INDEX or UNIQUE KEY within CREATE TABLE statements #253
Comments
@hubg398, thanks for opening the issue! I will try to take a look on it this week |
@hubg398 I fixed case |
I fixed the first case in PR #256 and released version 1.5.0 |
Wow quick, thanks. Giving it a go. Yea you're right it doesn't make sense to have AUTO_INCREMENT with INDEX, I think MySQL parses it without applying the AUTO_INCREMENT. Either way, without the AUTO_INCREMENT
also returns [], which is probably not expected? |
@hubg398 I think, I didn't add INDEX in column definition at all, I will add it, maybe today with patch release |
@hubg398 INDEX support in column definition released in version 1.5.1 - #258. I just published release - https://pypi.org/project/simple-ddl-parser/. If will be needed anything else - feel free to open the new one issue. |
🙏 Super appreciative of it, tested and works like a charm, thanks! |
Is your feature request related to a problem? Please describe.
It fails parsing INDEX and UNIQUE KEY of columns, within CREATE TABLE .... statements. Which should be valid, at least for MySQL
Sample SQL:
Thanks btw for the work on this parser, works a charm in a lot of cases.
The text was updated successfully, but these errors were encountered: