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

Postgres sql2dbml errors #277

Closed
yiziz opened this issue Jul 24, 2022 · 2 comments
Closed

Postgres sql2dbml errors #277

yiziz opened this issue Jul 24, 2022 · 2 comments

Comments

@yiziz
Copy link

yiziz commented Jul 24, 2022

Hey,

Been running into a bunch of syntax issues like

ERROR: You have a syntax error at "schema copy.sql" line 41 column 12. Expected "COLUMN" or "TABLE" but "S" found.

from a Postgres schema dump I did on this sample project database - https://github.com/lorint/AdventureWorks-for-Postgres.

I put the schema dump into this gist: https://gist.github.com/yiziz/74b1cf6c3c0b4f8362c39d03c32c6a27

@buraksarica
Copy link

We've encountered a few similar errors using the sql2dbml too. The problem seems about the unsupported sql clauses. These clauses may not be about DB model so, should sql2dbml just ignore these? I just remove those lines and it worked at the end.

@NQPhuc
Copy link
Contributor

NQPhuc commented Sep 6, 2023

Fixed in #416

@NQPhuc NQPhuc closed this as completed Sep 6, 2023
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

3 participants