Skip to content

Commit 22074e3

Browse files
committed
HHH-15269 Update NativeQuery unable to use h-schema placeholder, just emits placeholder contents into SQL
1 parent bd27a70 commit 22074e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeNonSelectQueryPlanImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ public int executeUpdate(DomainQueryExecutionContext executionContext) {
6767
);
6868
}
6969

70+
final SQLQueryParser parser = new SQLQueryParser( sql, null, session.getSessionFactory() );
71+
7072
final JdbcMutation jdbcMutation = new NativeJdbcMutation(
71-
sql,
73+
parser.process(),
7274
jdbcParameterBinders,
7375
affectedTableNames
7476
);

0 commit comments

Comments
 (0)