+
Skip to content

QuerySelect::column_as method cast ActiveEnum column expression as TEXT #2551

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

Merged
merged 1 commit into from
Apr 12, 2025

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
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载