Skip to content

Commit d69d9c8

Browse files
committed
HHH-18892 Fix SQL errors with hex and hash functions on HANA
1 parent 7a76dca commit d69d9c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
518518
// functionFactory.xmlextract();
519519
functionFactory.generateSeries_hana( getMaximumSeriesSize() );
520520

521-
functionFactory.hex( "to_hex(?1)" );
522-
functionFactory.sha( "hash_sha256(?1)" );
523-
functionFactory.md5( "hash_md5(?1)" );
521+
functionFactory.hex( "bintohex(?1)" );
522+
functionFactory.sha( "hash_sha256(to_binary(?1))" );
523+
functionFactory.md5( "hash_md5(to_binary(?1))" );
524524
}
525525

526526
/**

0 commit comments

Comments
 (0)