-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
Incorrect type in entity generation #2335
Comments
I still have this same issue, anybody looked into this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
character varying(128)
in incorrectly generated as128u32
Steps to Reproduce
Consider the following table
id
is a session id with length 128 and I believe it is a UUID and hence the 128 length.With
sea-orm-cli generate entity
, the type is incorrectly produced.If I don't manually coerce it to
ColumnType::Text.def()
, it won't compileExpected Behavior
After referencing this table, I cannot tell what type should be.
Reproduces How Often
It is always reproducible
Workarounds
Change to
ColumnType::Text.def()
manually.Versions
psql (16.1 (Debian 16.1-1.pgdg100+1), server 9.6.24)
Debian 12
The text was updated successfully, but these errors were encountered: