We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36ee67 commit 5a8db1cCopy full SHA for 5a8db1c
hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
@@ -2618,6 +2618,13 @@ public void testSha256Function(SessionFactoryScope scope) {
2618
catch (NoSuchAlgorithmException e) {
2619
throw new RuntimeException( e );
2620
}
2621
+ bytes = s.createSelectionQuery("select md5('hello')", byte[].class).getSingleResult();
2622
+ try {
2623
+ assertArrayEquals( MessageDigest.getInstance( "MD5" ).digest("hello".getBytes()), bytes );
2624
+ }
2625
+ catch (NoSuchAlgorithmException e) {
2626
+ throw new RuntimeException( e );
2627
2628
});
2629
2630
0 commit comments