diff --git a/jOOQ-test/src/org/jooq/test/_/testcases/JoinTests.java b/jOOQ-test/src/org/jooq/test/_/testcases/JoinTests.java index d0d1de0827..636351ed50 100644 --- a/jOOQ-test/src/org/jooq/test/_/testcases/JoinTests.java +++ b/jOOQ-test/src/org/jooq/test/_/testcases/JoinTests.java @@ -95,6 +95,29 @@ extends BaseTest result = + create().select() + .from(TAuthor()) + .join(TBook()).on(TAuthor_ID().equal(TBook_AUTHOR_ID())) + .crossJoin(create().select(one().as("one"))) + .orderBy(TBook_ID()) + .fetch(); + + assertEquals(4, result.size()); + assertEquals(BOOK_AUTHOR_IDS, result.getValues(TAuthor_ID())); + assertEquals(BOOK_AUTHOR_IDS, result.getValues(TBook_AUTHOR_ID())); + assertEquals(BOOK_IDS, result.getValues(TBook_ID())); + } + @Test public void testJoinQuery() throws Exception { SimpleSelectQuery q1 = create().selectQuery(VLibrary()); @@ -237,6 +260,22 @@ extends BaseTest