mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Remove limits in removeAll method.
Keeping a limit here results in a DatabaseException "This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'"
This commit is contained in:
parent
ae61be3a49
commit
5699db306d
@ -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…
Reference in New Issue
Block a user