HHH-18246 Fix for Informix nulls precedence support

This commit is contained in:
Vladimír Kuruc 2024-06-07 12:46:03 +02:00 committed by Christian Beikov
parent 0534e1aa01
commit e8bd4e7cc5
1 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import org.hibernate.community.dialect.sequence.SequenceInformationExtractorInfo
import org.hibernate.community.dialect.unique.InformixUniqueDelegate;
import org.hibernate.dialect.DatabaseVersion;
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.NullOrdering;
import org.hibernate.dialect.Replacer;
import org.hibernate.dialect.SelectItemReferenceStrategy;
import org.hibernate.dialect.function.CaseLeastGreatestEmulation;
@ -432,6 +433,16 @@ public class InformixDialect extends Dialect {
return SequenceInformationExtractorInformixDatabaseImpl.INSTANCE;
}
@Override
public NullOrdering getNullOrdering() {
return NullOrdering.SMALLEST;
}
@Override
public boolean supportsNullPrecedence() {
return getVersion().isSameOrAfter( 12, 10 );
}
@Override
public LimitHandler getLimitHandler() {
return limitHandler;