-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
enum
s are always lowercased in queries despire enum_name
leading to type does not exist
#2087
Comments
Hey! I'm facing the same issue, have you found a workaround? |
I am also unsure where the lowercase is being applied. If anyone have found it, a PR would be appreciated! |
Has the same issue in postgres, my enum name is like I did a workaround and renamed enum in postgres to snake case Probably in macros |
Description
After running the CLI to generate the types from my existing db, I got
A simple query with it always results in a lowercase
moduletype
not existing - which is correct. The generator correctly extracted the type name with capitals.Steps to Reproduce
enum
with capitals in itsea-orm-cli generate entity
Expected Behavior
inserts work
Actual Behavior
Reproduces How Often
always
Workarounds
Reproducible Example
Versions
sea-orm v0.12.12
The text was updated successfully, but these errors were encountered: