sea-query icon indicating copy to clipboard operation
sea-query copied to clipboard

Case-sensitive enum type casts

Open niklaskorz opened this issue 1 year ago • 1 comments

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 SomeEnum will now cast to "SomeEnum" on PostgreSQL, while it previously casted to someenum.

niklaskorz avatar Jun 25 '24 13:06 niklaskorz

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.

niklaskorz avatar Jun 25 '24 14:06 niklaskorz

: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 ⭐.

github-actions[bot] avatar Oct 05 '24 10:10 github-actions[bot]

@niklaskorz Please check the issue above. Thank you 🙇

mpyw avatar Oct 09 '24 01:10 mpyw