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

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

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

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

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
1 participant