-
Notifications
You must be signed in to change notification settings - Fork 39
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
Some columns from Postgres DDL are not parsed #123
Comments
Hi @xnuinside , do you think this is an easy-to-fix issue? |
@burakuyar already fixed #124 & released at 0.26.0 version. Sorry for the long answer & long release (have crazy last 2 month). Test was added - https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_simple_ddl_parser.py#L2571. If you will find any new issues - feel free to open the issue :) I hope I will fix it faster next time. |
Thank you very much! For sure, I will let you know if I face unexpected cases :) |
Describe the bug
Some columns with type
character varying
are not parsed whenNOT NULL
constraint does not exist for the column. Please see 3 example inputs and outputs below.CREATE TABLE
statements are generated bypg_dump
command inPostgres
.To Reproduce
run
result = parse_from_file(path_to_ddl_sql)
for the inputs below:NOT NULL
constraint toid_b
column.NOT NULL
constraint toid_c
column, too.Expected behavior
All 3 columns from
Input-1
should be parsed intoOutput-1
.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: