1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Add changelog for PR #14899

The changelog entry for #14899 was missing.
This commit is contained in:
eileencodes 2014-07-08 13:57:01 -04:00
parent 6f8cc2eb14
commit 5a8aa8f23e

View file

@ -1,3 +1,18 @@
* Fix the SQL generated when a `delete_all` is run on an association to not
produce an `IN` statements.
Before:
UPDATE "categorizations" SET "category_id" = NULL WHERE
"categorizations"."category_id" = 1 AND "categorizations"."id" IN (1, 2)
After:
UPDATE "categorizations" SET "category_id" = NULL WHERE
"categorizations"."category_id" = 1
*Eileen M. Uchitelle, Aaron Patterson*
* Avoid type casting boolean and ActiveSupport::Duration values to numeric
values for string columns. Otherwise, in some database, the string column
values will be coerced to a numeric allowing false or 0.seconds match any