Skip to content

Commit 1c6e250

Browse files
dreab8marko-bekhta
authored andcommitted
HHH-19926 Add test for issue
1 parent 8b535c5 commit 1c6e250

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,10 +2386,15 @@ public void testIn(SessionFactoryScope scope) {
23862386
session.createQuery("select 1 where 1 in :list", Integer.class)
23872387
.setParameterList("list",List.of())
23882388
.list().size() );
2389+
assertEquals( 0,
2390+
session.createQuery( "select e from EntityWithOneToOne e where e.other in (:list)" )
2391+
.setParameter( "list", null )
2392+
.list().size() );
23892393
}
23902394
);
23912395
}
23922396

2397+
23932398
@Test
23942399
public void testMaxGreatest(SessionFactoryScope scope) {
23952400
scope.inTransaction(

0 commit comments

Comments
 (0)