HHH-6749: Modified test to use dialect.useMaxForLimit() to determine the expected row count
This commit is contained in:
parent
3b3f921eb5
commit
47b7ca8c0d
|
@ -1651,10 +1651,10 @@ public class FooBarTest extends LegacyTestCase {
|
||||||
.iterate();
|
.iterate();
|
||||||
int count=0;
|
int count=0;
|
||||||
while ( iter.hasNext() ) {
|
while ( iter.hasNext() ) {
|
||||||
iter.next();
|
System.out.println("ROW = " + iter.next());
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
assertTrue(count==4);
|
assertEquals(DIALECT.useMaxForLimit() ? 7 : 4, count);
|
||||||
iter = s.createQuery("select distinct foo from Foo foo")
|
iter = s.createQuery("select distinct foo from Foo foo")
|
||||||
.setMaxResults(2)
|
.setMaxResults(2)
|
||||||
.setFirstResult(2)
|
.setFirstResult(2)
|
||||||
|
|
Loading…
Reference in New Issue