HHH-16137 Fix check when replacing jdbc parameter

This commit is contained in:
Marco Belladelli 2023-02-07 21:41:01 +01:00 committed by Christian Beikov
parent ad3cd73ada
commit 0e9e631e3e
1 changed files with 1 additions and 1 deletions

View File

@ -5210,7 +5210,7 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
for ( List<JdbcParameter> parameters : jdbcParamsForSqmParameter ) {
assert parameters.size() == 1;
final JdbcParameter jdbcParameter = parameters.get( 0 );
if ( ( (SqlExpressible) jdbcParameter ).getJdbcMapping() != valueMapping ) {
if ( ( (SqlExpressible) jdbcParameter ).getJdbcMapping() != jdbcMapping ) {
final JdbcParameter newJdbcParameter = new JdbcParameterImpl( jdbcMapping );
parameters.set( 0, newJdbcParameter );
jdbcParameters.getJdbcParameters().remove( jdbcParameter );