sea-query
sea-query copied to clipboard
Case-sensitive enum type casts
PR Info
- Closes https://github.com/SeaQL/sea-query/issues/725
- Dependents:
- https://github.com/SeaQL/sea-orm/pull/2271
Bug Fixes
- [x] Casting to an enum whose type name was declared case-sensitive does not crash anymore
Breaking Changes
- [x] Enum type casts are now case sensitive, so casting to
SomeEnumwill now cast to"SomeEnum"on PostgreSQL, while it previously casted tosomeenum.
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.
:tada: Released In 0.31.1 :tada:
Thank you everyone for the contribution! This feature is now available in the latest release. Now is a good time to upgrade! Your participation is what makes us unique; your adoption is what drives us forward. You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.
@niklaskorz Please check the issue above. Thank you 🙇