Skip to content

Commit 7605239

Browse files
committed
HHH-18027 Clear expansions NonSelectQueryPlan.executeUpdate call
1 parent 125aa7e commit 7605239

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,12 @@ protected void verifyUpdate() {
732732

733733
protected int doExecuteUpdate() {
734734
getSession().prepareForQueryExecution( true );
735-
return resolveNonSelectQueryPlan().executeUpdate( this );
735+
try {
736+
return resolveNonSelectQueryPlan().executeUpdate( this );
737+
}
738+
finally {
739+
domainParameterXref.clearExpansions();
740+
}
736741
}
737742

738743
private NonSelectQueryPlan resolveNonSelectQueryPlan() {

0 commit comments

Comments
 (0)