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

Issues parsing AUTOINCREMENT together with NOT NULL statement #170

Closed
devxor opened this issue Nov 4, 2022 · 1 comment
Closed

Issues parsing AUTOINCREMENT together with NOT NULL statement #170

devxor opened this issue Nov 4, 2022 · 1 comment
Assignees

Comments

@devxor
Copy link

devxor commented Nov 4, 2022

Describe the bug
When there is NOT NULL statement before AUTOINCREMENT statement the parser is not returning results.

To Reproduce

CREATE OR REPLACE TABLE mytable (
    field_1 NUMBER(38, 0) NOT NULL AUTOINCREMENT
);

Expected behavior
Results parsed correctly.

**Question:
When I will remove NOT NULL in the above example, it will be parsed, however the type of the column will be displayed as NUMBERAUTOINCREMENT. Is it correct? Should not be only NUMBER and AUTOINCREMENT as a separate flag or so?

@xnuinside
Copy link
Owner

@devxor I just released version 0.29.0 with fix. Try it! Test added here https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_simple_ddl_parser.py#L3121

thanks for opening the issue & feel free to open new one if needed anything more

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

2 participants