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))" ); } /**