File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -1130,4 +1130,9 @@ public boolean supportsRowValueConstructorSyntax() {
1130
1130
return false ;
1131
1131
}
1132
1132
1133
+ @ Override
1134
+ public boolean supportsNestedWithClause () {
1135
+ return false ;
1136
+ }
1137
+
1133
1138
}
Original file line number Diff line number Diff line change @@ -252,11 +252,6 @@ private boolean supportsOffsetFetchClause() {
252
252
return getDialect ().getVersion ().isSameOrAfter ( 3 );
253
253
}
254
254
255
- @ Override
256
- protected boolean supportsNestedWithClause () {
257
- return false ;
258
- }
259
-
260
255
@ Override
261
256
public void visitSelfRenderingPredicate (SelfRenderingPredicate selfRenderingPredicate ) {
262
257
// see comments in visitParameter
Original file line number Diff line number Diff line change @@ -6013,4 +6013,11 @@ public boolean supportsWithClauseInSubquery() {
6013
6013
return supportsWithClause ();
6014
6014
}
6015
6015
6016
+ /**
6017
+ * Whether the SQL with clause is supported within a CTE.
6018
+ */
6019
+ public boolean supportsNestedWithClause () {
6020
+ return supportsWithClauseInSubquery ();
6021
+ }
6022
+
6016
6023
}
Original file line number Diff line number Diff line change @@ -2145,7 +2145,7 @@ public void visitCteContainer(CteContainer cteContainer) {
2145
2145
pushToTopLevel = false ;
2146
2146
}
2147
2147
else {
2148
- pushToTopLevel = !supportsNestedWithClause ()
2148
+ pushToTopLevel = !dialect . supportsNestedWithClause ()
2149
2149
|| !dialect .supportsWithClauseInSubquery () && isInSubquery ();
2150
2150
}
2151
2151
final boolean inNestedWithClause = clauseStack .findCurrentFirst ( AbstractSqlAstTranslator ::matchWithClause ) != null ;
@@ -2414,13 +2414,6 @@ protected void visitCteDefinition(CteStatement cte) {
2414
2414
limit = oldLimit ;
2415
2415
}
2416
2416
2417
- /**
2418
- * Whether the SQL with clause is supported within a CTE.
2419
- */
2420
- protected boolean supportsNestedWithClause () {
2421
- return dialect .supportsWithClauseInSubquery ();
2422
- }
2423
-
2424
2417
/**
2425
2418
* Whether CTEs should be inlined rather than rendered as CTEs.
2426
2419
*/
You can’t perform that action at this time.
0 commit comments