From bda95dfbe75c68f5c1b77a2f21c403cbe08548a2 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 23 Apr 2024 17:59:12 +0200 Subject: [PATCH] Fix HANA dialect doesRoundTemporalOnOverflow --- .../java/org/hibernate/dialect/AbstractHANADialect.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java index 349110a48f..aaea08b086 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java @@ -806,6 +806,12 @@ public abstract class AbstractHANADialect extends Dialect { return true; } + @Override + public boolean doesRoundTemporalOnOverflow() { + // HANA does truncation + return false; + } + @Override public boolean supportsExistsInSelect() { return false;