Skip to content

Commit 5ad3abc

Browse files
committed
HHH-15537 Implement lateral subquery emulation when nested correlation is unsupported
1 parent 8302b06 commit 5ad3abc

File tree

2 files changed

+318
-35
lines changed

2 files changed

+318
-35
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/MySQLSqlAstTranslator.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ protected boolean supportsDistinctFromPredicate() {
160160
return true;
161161
}
162162

163+
@Override
164+
protected boolean supportsSimpleQueryGrouping() {
165+
return getDialect().getVersion().isSameOrAfter( 8 );
166+
}
167+
168+
@Override
169+
protected boolean supportsNestedSubqueryCorrelation() {
170+
return false;
171+
}
172+
163173
@Override
164174
protected String getFromDual() {
165175
return " from dual";

0 commit comments

Comments
 (0)