Skip to content

Commit

Permalink
[#15993] RenderTable.WHEN_MULTIPLE_TABLES only works with table lists…
Browse files Browse the repository at this point in the history
…, not with joins
  • Loading branch information
lukaseder committed Dec 27, 2023
1 parent 4a86538 commit 092654b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jOOQ/src/main/java/org/jooq/impl/SelectQueryImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,9 @@ final void accept0(Context<?> context) {
}

case WHEN_MULTIPLE_TABLES: {
if (knownTableSource() && getFrom().size() < 2)
int s = getFrom().size();

if (knownTableSource() && (s == 0 || s == 1 && !(getFrom().get(0) instanceof JoinTable)))
context.data(DATA_RENDER_TABLE, false);

break;
Expand Down

0 comments on commit 092654b

Please sign in to comment.