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

Case-sensitive enum type casts #789

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niklaskorz
Copy link

@niklaskorz niklaskorz commented Jun 25, 2024

PR Info

Bug Fixes

  • Casting to an enum whose type name was declared case-sensitive does not crash anymore

Breaking Changes

  • Enum type casts are now case sensitive, so casting to SomeEnum will now cast to "SomeEnum" on PostgreSQL, while it previously casted to someenum.

@niklaskorz
Copy link
Author

This still has problems with arrays, as sea-orm constructs array types directly as {enum_name}[], making it hard to only quote the type name but not the array brackets from sea-query.

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

Successfully merging this pull request may close these issues.

postgres: CAST($2 AS CaseSensitiveEnumType) enum type must be enquoted
1 participant