[jOOQ/jOOQ#14985] Allow for specifying explicit path joins

- Handle cosmetic case of avoiding on(noCondition()) renderings
This commit is contained in:
Lukas Eder 2023-04-27 11:48:13 +02:00
parent 0f0b5e4725
commit 2ffa09a981

View File

@ -578,10 +578,11 @@ implements
// are expected, and their predicates are already present.
&& ctx.data(DATA_RENDER_IMPLICIT_JOIN) == null
) {
toSQLJoinCondition(ctx, new Join(((TableImpl<?>) rhs).child, rhs)
.onKey(((TableImpl<?>) rhs).childPath)
.condition.getWhere().and(condition.getWhere())
);
toSQLJoinCondition(ctx, DSL.and(
new Join(((TableImpl<?>) rhs).child, rhs)
.onKey(((TableImpl<?>) rhs).childPath)
.condition.getWhere(), condition.getWhere()
));
}
// Regular JOIN condition