Skip to content

Commit 6075969

Browse files
committed
HHH-19895 Don't unnecessarily check values list support for insert/mutation CTE strategies
1 parent 7df457e commit 6075969

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
@@ -121,13 +121,6 @@ public CteInsertStrategy(
121121
);
122122
}
123123

124-
if ( !dialect.supportsValuesList() ) {
125-
throw new UnsupportedOperationException(
126-
getClass().getSimpleName() +
127-
" can only be used with Dialects that support VALUES lists"
128-
);
129-
}
130-
131124
// The table name might be a sub-query, which is inappropriate for a temporary table name
132125
final String originalTableName = rootDescriptor.getEntityPersister().getSynchronizedQuerySpaces()[0];
133126
final String name;

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
@@ -78,13 +78,6 @@ public CteMutationStrategy(
7878
);
7979
}
8080

81-
if ( !dialect.supportsValuesList() ) {
82-
throw new UnsupportedOperationException(
83-
getClass().getSimpleName() +
84-
" can only be used with Dialects that support VALUES lists"
85-
);
86-
}
87-
8881
this.idCteTable = CteTable.createIdTable( ID_TABLE_NAME, rootDescriptor );
8982
}
9083

0 commit comments

Comments
 (0)