Skip to content

Commit 414b8c8

Browse files
committed
fix test on Informix
1 parent 59ae4c7 commit 414b8c8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/query/dynamic/SimpleQuerySpecificationTests.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ void testSimpleMutationRestriction(SessionFactoryScope factoryScope) {
168168

169169
assertThat( sqlCollector.getSqlQueries() ).hasSize( 1 );
170170
assertThat( sqlCollector.getSqlQueries().get( 0 ) )
171-
.containsAnyOf( " where be1_0.position between ? and ?", " where be1_0.\"position\" between ? and ?" );
171+
.containsAnyOf( " where be1_0.position between ? and ?",
172+
" where be1_0.\"position\" between ? and ?",
173+
" where position between ? and ?" );
172174
}
173175

174176
@Test
@@ -225,7 +227,9 @@ void testSimpleMutationRestrictionAsReference(SessionFactoryScope factoryScope)
225227

226228
assertThat( sqlCollector.getSqlQueries() ).hasSize( 1 );
227229
assertThat( sqlCollector.getSqlQueries().get( 0 ) )
228-
.containsAnyOf( " where be1_0.position between ? and ?", " where be1_0.\"position\" between ? and ?" );
230+
.containsAnyOf( " where be1_0.position between ? and ?",
231+
" where be1_0.\"position\" between ? and ?",
232+
" where position between ? and ?" );
229233
}
230234

231235
@Test
@@ -242,7 +246,9 @@ void testSimpleMutationRestrictionStatelessAsReference(SessionFactoryScope facto
242246

243247
assertThat( sqlCollector.getSqlQueries() ).hasSize( 1 );
244248
assertThat( sqlCollector.getSqlQueries().get( 0 ) )
245-
.containsAnyOf( " where be1_0.position between ? and ?", " where be1_0.\"position\" between ? and ?" );
249+
.containsAnyOf( " where be1_0.position between ? and ?",
250+
" where be1_0.\"position\" between ? and ?",
251+
" where position between ? and ?" );
246252
}
247253

248254
@Test

0 commit comments

Comments
 (0)