Skip to content

Commit 4b9c8dd

Browse files
committed
HHH-19926 Add test for issue
1 parent 7585aaa commit 4b9c8dd

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
@@ -2504,10 +2504,15 @@ public void testIn(SessionFactoryScope scope) {
25042504
session.createQuery("select 1 where 1 in :list", Integer.class)
25052505
.setParameterList("list",List.of())
25062506
.list().size() );
2507+
assertEquals( 0,
2508+
session.createQuery( "select e from EntityWithOneToOne e where e.other in (:list)" )
2509+
.setParameter( "list", null )
2510+
.list().size() );
25072511
}
25082512
);
25092513
}
25102514

2515+
25112516
@Test
25122517
public void testMaxGreatest(SessionFactoryScope scope) {
25132518
scope.inTransaction(

0 commit comments

Comments
 (0)