HHH-6749: Modified test to use dialect.useMaxForLimit() to determine the expected row count

This commit is contained in:
John Verhaeg 2011-10-19 15:42:44 -05:00
parent 3b3f921eb5
commit 47b7ca8c0d
1 changed files with 2 additions and 2 deletions

View File

@ -1651,10 +1651,10 @@ public class FooBarTest extends LegacyTestCase {
.iterate();
int count=0;
while ( iter.hasNext() ) {
iter.next();
System.out.println("ROW = " + iter.next());
count++;
}
assertTrue(count==4);
assertEquals(DIALECT.useMaxForLimit() ? 7 : 4, count);
iter = s.createQuery("select distinct foo from Foo foo")
.setMaxResults(2)
.setFirstResult(2)