提交 090db0ff 编写于 作者: Y Yves Senn

Merge pull request #14727 from robin850/patch-17

Add a changelog entry for #14546 [ci skip]
* Calling `delete_all` on an unloaded `CollectionProxy` no longer
generates a SQL statement containing each id of the collection:
Before:
DELETE FROM `model` WHERE `model`.`parent_id` = 1
AND `model`.`id` IN (1, 2, 3...)
After:
DELETE FROM `model` WHERE `model`.`parent_id` = 1
*Eileen M. Uchitelle*, *Aaron Patterson*
* Fixed error for aggregate methods (`empty?`, `any?`, `count`) with `select`
which created invalid SQL.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册