From 4e1be36110957b3b40fe6dcd409538de44bd58bb Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 23 May 2024 20:03:32 +0200 Subject: [PATCH] HHH-18027 Clear expansions NonSelectQueryPlan.executeUpdate call --- .../org/hibernate/query/sqm/internal/QuerySqmImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java index 85b0ba11bb..d463dbb1bb 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java @@ -701,7 +701,12 @@ public class QuerySqmImpl } protected int doExecuteUpdate() { - return resolveNonSelectQueryPlan().executeUpdate( this ); + try { + return resolveNonSelectQueryPlan().executeUpdate( this ); + } + finally { + domainParameterXref.clearExpansions(); + } } private NonSelectQueryPlan resolveNonSelectQueryPlan() {