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

Using Postgres type timestamp with time zone results to table not appearing in the list #250

Closed
umaxfun opened this issue May 11, 2024 · 2 comments
Assignees

Comments

@umaxfun
Copy link

umaxfun commented May 11, 2024

The code

from simple_ddl_parser import ddl_parser

sql = "CREATE TABLE public.test (date_updated timestamp with time zone);"
result = ddl_parser.DDLParser(sql).run()
print(result)

results in []

This type is used by Directus CMS, so I can't use another type =(

@umaxfun umaxfun changed the title Postgres type timestamp with timezone result to table not appearing in the list Using Postgres type timestamp with time zone results to table not appearing in the list May 11, 2024
@xnuinside xnuinside self-assigned this May 11, 2024
@xnuinside
Copy link
Owner

@umaxfun Hi! Thanks for opening the issue. I released the fix in version 1.3.0 - https://pypi.org/project/simple-ddl-parser/. Test was added: https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/dialects/test_psql.py#L118
If will be needed anything else - feel free to open new issue!

@umaxfun
Copy link
Author

umaxfun commented May 14, 2024

Wow, so cool, thanks a lot!

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