diff options
author | eileencodes <eileencodes@gmail.com> | 2014-07-08 13:57:01 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2014-07-08 13:58:52 -0400 |
commit | 5a8aa8f23ed54a67cd5ab8415c1f452687af7ce9 (patch) | |
tree | 63ce73d3f78e95bfa8abcd45d3f4c026bf2fa38e /activerecord | |
parent | 6f8cc2eb14f84b6895b555f6020289a029cf33ee (diff) | |
download | rails-5a8aa8f23ed54a67cd5ab8415c1f452687af7ce9.tar.gz rails-5a8aa8f23ed54a67cd5ab8415c1f452687af7ce9.tar.bz2 rails-5a8aa8f23ed54a67cd5ab8415c1f452687af7ce9.zip |
[ci skip] Add changelog for PR #14899
The changelog entry for #14899 was missing.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 42f2b72a08..971bef913f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -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 |