Skip to content

HHH-19579 Criteria update join - Column 'code' in SET is ambiguous #10528

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

Closed
wants to merge 2 commits into from

Conversation

dreab8
Copy link
Member

@dreab8 dreab8 commented Jul 14, 2025

https://hibernate.atlassian.net/browse/HHH-19579


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.


@@ -1196,6 +1196,15 @@ else if ( assignedValue instanceof SelectStatement ) {
}
}

private void appendColumn(ColumnReference column) {
Copy link
Member

Choose a reason for hiding this comment

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

Might be better to let subclasses override this when they support qualifying columns in the set clause and default to appendColumnForWrite( this, null ) i.e. drop the qualifier.

Copy link
Member

Choose a reason for hiding this comment

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

I guess only MySQL and MariaDB support this, but they'd have to skip this behavior if the current statement is an insert statement.

@dreab8
Copy link
Member Author

dreab8 commented Jul 15, 2025

superseded by #10531

@dreab8 dreab8 closed this Jul 15, 2025
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.

2 participants