[jOOQ/jOOQ#16734] Redundant policy related logic in UpdateQueryImpl

This commit is contained in:
Lukas Eder 2024-05-30 11:07:51 +02:00
parent 09e75a5e23
commit 7a4b83a589
2 changed files with 2 additions and 13 deletions

View File

@ -297,7 +297,7 @@ implements
}
if (where.hasWhere())
d.addConditions(where);
d.addConditions(where.getWhere());
},
transformInlineDerivedTables0(ctx, t, where, false)
).accept0(ctx);

View File

@ -595,7 +595,7 @@ implements
}
if (where.hasWhere())
d.addConditionsForInlineDerivedTable(where);
d.addConditionsForInlineDerivedTable(where.getWhere());
},
transformInlineDerivedTables0(ctx, t, where, false)
).accept0(ctx);
@ -723,20 +723,9 @@ implements
final void accept2(Context<?> ctx) {
boolean declareTables = ctx.declareTables();
// [#14011] Additional predicates that are added for various reasons
Condition moreWhere = noCondition();
Table<?> t = table(ctx);
ctx.scopeRegister(t, true);
ConditionProviderImpl where0 = new ConditionProviderImpl();
TableList f = getFrom(ctx, where0);
Table<?> t0 = t;