Skip to content

Commit 34dd9d1

Browse files
committed
HHH-10327 : Unit test failure on Oracle due to DATE mismatches
1 parent 8de9ca0 commit 34dd9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/test/java/org/hibernate/test/legacy/FooBarTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public void testQuery() throws Exception {
485485
// && !db.equals("weblogic") {
486486
if ( !( getDialect() instanceof InterbaseDialect ) ) {
487487
list = s.createQuery( "from Foo foo where ? = some elements(foo.component.importantDates)" )
488-
.setParameter( 0, new Date(), StandardBasicTypes.DATE )
488+
.setParameter( 0, foo.getTimestamp(), StandardBasicTypes.DATE )
489489
.list();
490490
assertTrue( "component query", list.size()==2 );
491491
}

0 commit comments

Comments
 (0)