HHH-18250 Informix multi insert not supported

This commit is contained in:
Vladimír Kuruc 2024-06-09 12:36:21 +02:00 committed by Christian Beikov
parent 8166086957
commit aa9f3d091c
2 changed files with 6 additions and 1 deletions

View File

@ -479,6 +479,11 @@ public class InformixDialect extends Dialect {
return getVersion().isSameOrAfter( 12, 10 ); return getVersion().isSameOrAfter( 12, 10 );
} }
@Override
public boolean supportsValuesListForInsert() {
return false;
}
@Override @Override
public ViolatedConstraintNameExtractor getViolatedConstraintNameExtractor() { public ViolatedConstraintNameExtractor getViolatedConstraintNameExtractor() {
return EXTRACTOR; return EXTRACTOR;

View File

@ -788,7 +788,7 @@ public class QuerySqmImpl<R>
final NonSelectQueryPlan[] planParts = new NonSelectQueryPlan[valuesList.size()]; final NonSelectQueryPlan[] planParts = new NonSelectQueryPlan[valuesList.size()];
for ( int i = 0; i < valuesList.size(); i++ ) { for ( int i = 0; i < valuesList.size(); i++ ) {
final SqmInsertValuesStatement<?> subInsert = insertValues.copyWithoutValues( SqmCopyContext.simpleContext() ); final SqmInsertValuesStatement<?> subInsert = insertValues.copyWithoutValues( SqmCopyContext.simpleContext() );
subInsert.values( valuesList ); subInsert.values( valuesList.get( i ) );
planParts[i] = new SimpleInsertQueryPlan( subInsert, domainParameterXref ); planParts[i] = new SimpleInsertQueryPlan( subInsert, domainParameterXref );
} }