Skip to content

Commit

Permalink
Merge 5699db3 into ae61be3
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jul 12, 2021
2 parents ae61be3 + 5699db3 commit 1fec11f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ORM/ManyManyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ public function removeAll()
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
Expand Down

0 comments on commit 1fec11f

Please sign in to comment.