From d0d442cfdac7fa36186eb8dbc142864a4a269320 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 17 Dec 2024 17:53:30 +0100 Subject: [PATCH] HHH-18892 Fix SQL errors with hex and hash functions on HANA --- .../src/main/java/org/hibernate/dialect/HANADialect.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java index d40fdadbf1..4713aba976 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java @@ -518,9 +518,9 @@ public class HANADialect extends Dialect { // functionFactory.xmlextract(); functionFactory.generateSeries_hana( getMaximumSeriesSize() ); - functionFactory.hex( "to_hex(?1)" ); - functionFactory.sha( "hash_sha256(?1)" ); - functionFactory.md5( "hash_md5(?1)" ); + functionFactory.hex( "bintohex(?1)" ); + functionFactory.sha( "hash_sha256(to_binary(?1))" ); + functionFactory.md5( "hash_md5(to_binary(?1))" ); } /**