From 22074e3dcb9307c9914207f2a5ebd62690b70acc Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Fri, 13 May 2022 14:56:00 +0200 Subject: [PATCH] HHH-15269 Update NativeQuery unable to use h-schema placeholder, just emits placeholder contents into SQL --- .../query/sql/internal/NativeNonSelectQueryPlanImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeNonSelectQueryPlanImpl.java b/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeNonSelectQueryPlanImpl.java index c12735ae45..41b051117a 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeNonSelectQueryPlanImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeNonSelectQueryPlanImpl.java @@ -67,8 +67,10 @@ public class NativeNonSelectQueryPlanImpl implements NonSelectQueryPlan { ); } + final SQLQueryParser parser = new SQLQueryParser( sql, null, session.getSessionFactory() ); + final JdbcMutation jdbcMutation = new NativeJdbcMutation( - sql, + parser.process(), jdbcParameterBinders, affectedTableNames );