Skip to content

Commit c26d766

Browse files
committed
HHH-19895 Don't unnecessarily check values list support for insert/mutation CTE strategies
1 parent 0538a56 commit c26d766

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteInsertStrategy.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ public CteInsertStrategy(
126126
);
127127
}
128128

129-
if ( !dialect.supportsValuesList() ) {
130-
throw new UnsupportedOperationException(
131-
getClass().getSimpleName() +
132-
" can only be used with Dialects that support VALUES lists"
133-
);
134-
}
135-
136129
final PersistentClass persistentClass = runtimeModelCreationContext.getMetadata()
137130
.getEntityBinding( rootDescriptor.getEntityName() );
138131
final Identifier tableNameIdentifier;

hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteMutationStrategy.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ public CteMutationStrategy(
8080
);
8181
}
8282

83-
if ( !dialect.supportsValuesList() ) {
84-
throw new UnsupportedOperationException(
85-
getClass().getSimpleName() +
86-
" can only be used with Dialects that support VALUES lists"
87-
);
88-
}
89-
9083
this.idCteTable = CteTable.createIdTable( ID_TABLE_NAME,
9184
runtimeModelCreationContext.getMetadata().getEntityBinding( rootDescriptor.getEntityName() ) );
9285
}

0 commit comments

Comments
 (0)