fix insert ... values (...) statements
they break when using a MultiTableInsertQueryPlan, but we probably don't need one
This commit is contained in:
parent
cb787e87a8
commit
a61ffbfea7
|
@ -933,7 +933,7 @@ public class QuerySqmImpl<R>
|
|||
final EntityPersister entityDescriptor = getSessionFactory().getDomainModel().findEntityDescriptor( entityNameToInsert );
|
||||
|
||||
final SqmMultiTableInsertStrategy multiTableStrategy = entityDescriptor.getSqmMultiTableInsertStrategy();
|
||||
if ( multiTableStrategy == null ) {
|
||||
if ( multiTableStrategy == null || sqmInsert instanceof SqmInsertValuesStatement ) {
|
||||
return new SimpleInsertQueryPlan( sqmInsert, domainParameterXref );
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue