[#2580] Added failing integration test
This commit is contained in:
parent
9f937fd944
commit
2a227ef914
@ -314,6 +314,27 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, UU, I, IPK, T7
|
||||
|
||||
assertEquals(Integer.valueOf(2), result.getValue(0, TBook_ID()));
|
||||
assertEquals(Integer.valueOf(3), result.getValue(1, TBook_ID()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLimitDistinct() throws Exception {
|
||||
|
||||
// [#2580] The various emulations using ROW_NUMBER() might be tricky when
|
||||
// used with DISTINCT
|
||||
assertEquals(1, (int)
|
||||
create().selectDistinct(TBookToBookStore_BOOK_ID())
|
||||
.from(TBookToBookStore())
|
||||
.orderBy(TBookToBookStore_BOOK_ID())
|
||||
.limit(1)
|
||||
.fetchOne(TBookToBookStore_BOOK_ID()));
|
||||
|
||||
assertEquals(2, (int)
|
||||
create().selectDistinct(TBookToBookStore_BOOK_ID())
|
||||
.from(TBookToBookStore())
|
||||
.orderBy(TBookToBookStore_BOOK_ID())
|
||||
.limit(1)
|
||||
.offset(1)
|
||||
.fetchOne(TBookToBookStore_BOOK_ID()));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@ -1802,11 +1802,16 @@ public abstract class jOOQAbstractTest<
|
||||
public void testOrderByAndLimit() throws Exception {
|
||||
new OrderByTests(this).testOrderByAndLimit();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLimit() throws Exception {
|
||||
new OrderByTests(this).testLimit();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLimit() throws Exception {
|
||||
new OrderByTests(this).testLimit();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLimitDistinct() throws Exception {
|
||||
new OrderByTests(this).testLimitDistinct();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLimitAliased() throws Exception {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user