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

MySQL sql2dbml fails on comments #461

Closed
darkwitch opened this issue Oct 15, 2023 · 1 comment
Closed

MySQL sql2dbml fails on comments #461

darkwitch opened this issue Oct 15, 2023 · 1 comment

Comments

@darkwitch
Copy link

I tried sql2dbml on my project and was suprised that comments (field and table level) are not supported:

(
    ID varchar(100) not null comment 'id of table'
);

Fails with:
`ERROR: You have a syntax error at "comment_test.sql" line 3 column 5. Expected ")" or fields but "I" found.`
@nguyenalter
Copy link
Contributor

We do support table and field comments in MySQL (implemented in #252)

The issue you mentioned is caused by our parser does not recognize the "comment" word. We have fixed it in #460

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