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

Typo in types.py #59

Closed
umaxfun opened this issue May 11, 2024 · 1 comment
Closed

Typo in types.py #59

umaxfun opened this issue May 11, 2024 · 1 comment
Assignees

Comments

@umaxfun
Copy link

umaxfun commented May 11, 2024

ddl = """
CREATE TABLE qwe (
    id integer NOT NULL,
    name character varying(255),
);
"""
result = create_models(ddl, models_type='sqlmodel')['code']

This code fails due to the typo in

"character_vying",

When character_vying changed to character varying everything seems to work.

@xnuinside
Copy link
Owner

@umaxfun hi! thanks for opening the issue, fix released in 0.17.0 version - https://github.com/xnuinside/omymodels/blob/main/tests/functional/generator/test_sqlmodel.py#L364 (test)

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