Fix default null ordering for H2 and re-enable test
This commit is contained in:
parent
ef6f190925
commit
90e551da4b
|
@ -389,7 +389,7 @@ public class H2Dialect extends Dialect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NullOrdering getNullOrdering() {
|
public NullOrdering getNullOrdering() {
|
||||||
return NullOrdering.FIRST;
|
return NullOrdering.SMALLEST;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -76,14 +76,14 @@ public class CorrelatedTableGroup extends AbstractTableGroup {
|
||||||
String tableExpression,
|
String tableExpression,
|
||||||
boolean allowFkOptimization,
|
boolean allowFkOptimization,
|
||||||
boolean resolve) {
|
boolean resolve) {
|
||||||
final TableReference primaryTableReference = correlatedTableGroup.getPrimaryTableReference().getTableReference(
|
final TableReference tableReference = correlatedTableGroup.getTableReference(
|
||||||
navigablePath,
|
navigablePath,
|
||||||
tableExpression,
|
tableExpression,
|
||||||
allowFkOptimization,
|
allowFkOptimization,
|
||||||
resolve
|
resolve
|
||||||
);
|
);
|
||||||
if ( primaryTableReference != null ) {
|
if ( tableReference != null ) {
|
||||||
return primaryTableReference;
|
return tableReference;
|
||||||
}
|
}
|
||||||
for ( TableGroupJoin tableGroupJoin : getNestedTableGroupJoins() ) {
|
for ( TableGroupJoin tableGroupJoin : getNestedTableGroupJoins() ) {
|
||||||
final TableReference groupTableReference = tableGroupJoin.getJoinedGroup()
|
final TableReference groupTableReference = tableGroupJoin.getJoinedGroup()
|
||||||
|
@ -101,17 +101,6 @@ public class CorrelatedTableGroup extends AbstractTableGroup {
|
||||||
return groupTableReference;
|
return groupTableReference;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for ( TableReferenceJoin tableReferenceJoin : correlatedTableGroup.getTableReferenceJoins() ) {
|
|
||||||
final TableReference tableReference = tableReferenceJoin.getJoinedTableReference().getTableReference(
|
|
||||||
navigablePath,
|
|
||||||
tableExpression,
|
|
||||||
allowFkOptimization,
|
|
||||||
resolve
|
|
||||||
);
|
|
||||||
if ( tableReference != null ) {
|
|
||||||
return tableReference;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.hibernate.query.criteria.internal;
|
package org.hibernate.orm.test.query.criteria.internal;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
Loading…
Reference in New Issue