[#6583] Work around MySQL's self-reference-in-DML-subquery restriction
This commit is contained in:
parent
14a73800eb
commit
8f151a3d3b
@ -2100,6 +2100,8 @@ final class SelectQueryImpl<R extends Record> extends AbstractResultQuery<R> imp
|
||||
if (table instanceof JoinTable)
|
||||
return containsTable(((JoinTable) table).lhs, contained)
|
||||
|| containsTable(((JoinTable) table).rhs, contained);
|
||||
else if (table instanceof TableAlias)
|
||||
return containsTable(((TableAlias<?>) table).alias.wrapped, contained);
|
||||
else
|
||||
return contained.equals(table);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user