[jOOQ/jOOQ#14985] Allow for specifying explicit path joins
- Handle cosmetic case of avoiding on(noCondition()) renderings
This commit is contained in:
parent
0f0b5e4725
commit
2ffa09a981
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user