HHH-16137 Fix check when replacing jdbc parameter
This commit is contained in:
parent
ad3cd73ada
commit
0e9e631e3e
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue