mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #10020 from GuySartorelli/patch-4
FIX Remove limits in removeAll method
This commit is contained in:
commit
dee0b1faf4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user