|
12 | 12 | import java.util.List; |
13 | 13 |
|
14 | 14 | import org.hibernate.boot.MetadataSources; |
15 | | -import org.hibernate.query.Query; |
16 | 15 |
|
| 16 | +import org.hibernate.community.dialect.InformixDialect; |
17 | 17 | import org.hibernate.testing.orm.domain.contacts.Contact; |
18 | 18 | import org.hibernate.testing.orm.domain.contacts.ContactsDomainModel; |
19 | 19 | import org.hibernate.testing.orm.junit.BaseSessionFactoryFunctionalTest; |
20 | 20 | import org.hibernate.testing.orm.junit.Jira; |
| 21 | +import org.hibernate.testing.orm.junit.SkipForDialect; |
21 | 22 | import org.junit.jupiter.api.AfterEach; |
22 | 23 | import org.junit.jupiter.api.BeforeEach; |
23 | 24 | import org.junit.jupiter.api.Test; |
|
26 | 27 | import jakarta.persistence.Id; |
27 | 28 |
|
28 | 29 | import static org.hamcrest.CoreMatchers.is; |
29 | | -import static org.junit.Assert.assertThat; |
| 30 | +import static org.hamcrest.MatcherAssert.assertThat; |
30 | 31 | import static org.junit.jupiter.api.Assertions.assertEquals; |
31 | 32 |
|
32 | 33 | /** |
@@ -66,8 +67,8 @@ public void prepareData() { |
66 | 67 | public void testParameterListIn() { |
67 | 68 | inTransaction( |
68 | 69 | session -> { |
| 70 | + var q = session.createQuery( "select id from Contact where id in (:ids) order by id" ); |
69 | 71 | Collection<Integer> ids = new ArrayList<>(); |
70 | | - Query q = session.createQuery( "select id from Contact where id in (:ids) order by id" ); |
71 | 72 | for ( int i = 0; i < 10; i++ ) { |
72 | 73 | ids.add( i ); |
73 | 74 | } |
@@ -104,6 +105,8 @@ public void test() { |
104 | 105 |
|
105 | 106 | @Test |
106 | 107 | @Jira( "https://hibernate.atlassian.net/browse/HHH-18575" ) |
| 108 | + @SkipForDialect(dialectClass = InformixDialect.class, |
| 109 | + reason = "Informix does not like '? in (?,?)'") |
107 | 110 | void testMultiValuedBigDecimals() { |
108 | 111 | inTransaction( session -> { |
109 | 112 | assertEquals( |
|
0 commit comments