Merge pull request #10020 from GuySartorelli/patch-4

FIX Remove limits in removeAll method
This commit is contained in:
Michal Kleiner 2022-01-15 10:42:19 +13:00 committed by GitHub
commit dee0b1faf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ class ManyManyList extends RelationList
unset($from[$this->joinTable]);
$selectQuery->setFrom($from);
$selectQuery->setOrderBy(); // ORDER BY in subselects breaks MS SQL Server and is not necessary here
$selectQuery->setLimit(null); // LIMIT in subselects breaks MariaDB (https://mariadb.com/kb/en/subquery-limitations/#limit) and is not necessary here
$selectQuery->setDistinct(false);
// Use a sub-query as SQLite does not support setting delete targets in