From e8bd4e7cc5acd36c0773c2855fd5314804c3cdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Kuruc?= Date: Fri, 7 Jun 2024 12:46:03 +0200 Subject: [PATCH] HHH-18246 Fix for Informix nulls precedence support --- .../hibernate/community/dialect/InformixDialect.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java index be5c846838..8c7aba57d6 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java @@ -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;