Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Mar 31, 2025

PR Info

Bug Fixes

  • QuerySelect::column_as method cast ActiveEnum column expression as TEXT

Changes

  • New ColumnAsExpr trait: extending [IntoSimpleExpr] to support casting ActiveEnum as TEXT in select expression

Breaking Changes

  • QuerySelect::column_as now takes ColumnAsExpr instead of IntoSimpleExpr but this should be backward compatible
  • SelectColumns::select_column_as now takes ColumnAsExpr instead of IntoSimpleExpr but this should be backward compatible

@tyt2y3 tyt2y3 merged commit 95dcc37 into master Apr 12, 2025
36 checks passed
@tyt2y3 tyt2y3 deleted the column-as-expr branch April 12, 2025 18:14
@github-actions
Copy link

🎉 Released In 1.1.9 🎉

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

hjarraya pushed a commit to sambaclab/sea-orm that referenced this pull request Apr 29, 2025
@joebnb
Copy link

joebnb commented May 13, 2025

this is a help feature when using relation Trait and meet some conflict columns

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.

column_as() breaks PostgreSQL enum

3 participants