Skip to content

HHH-19396 [6.6] cannot select the same column twice with different aliases while using cte #10360

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

Conversation

cigaly
Copy link
Contributor

@cigaly cigaly commented Jun 17, 2025

Jira issue HHH-19396 - backport to 6.6


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@mbellade mbellade added the 6.6 label Jun 17, 2025
…mporary tables and subqueries

          Selection items representing same column in (sub)query will be represented with single instance, this will hide real alias
@cigaly cigaly force-pushed the HHH-19396-(6.6)Cannot_select_the_same_column_twice_with_different_aliases_while_using_CTE branch from f82bbb3 to bf3e262 Compare June 17, 2025 13:24
Copy link
Member

@mbellade mbellade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @cigaly

@mbellade mbellade merged commit b4b2a20 into hibernate:6.6 Jul 1, 2025
29 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants