From dcbbd289262e7f574bdb98cf8d982f857afa102e Mon Sep 17 00:00:00 2001 From: Marco Belladelli Date: Thu, 4 May 2023 16:02:03 +0200 Subject: [PATCH] HHH-16517 Don't clear map to allow prepared statement group reuse --- .../jdbc/mutation/internal/PreparedStatementGroupStandard.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/PreparedStatementGroupStandard.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/PreparedStatementGroupStandard.java index f89a1f71fd..1b0dfe3863 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/PreparedStatementGroupStandard.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/PreparedStatementGroupStandard.java @@ -149,7 +149,6 @@ public class PreparedStatementGroupStandard implements PreparedStatementGroup { @Override public void release() { statementMap.forEach( (tableName, statementDetails) -> statementDetails.releaseStatement( session ) ); - statementMap.clear(); }