diff options
author | Michael Koziarski <michael@koziarski.com> | 2013-02-07 23:33:00 -0800 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2013-02-07 23:33:00 -0800 |
commit | bcf0e08a8df372ef1be376587e5bc206c740e5ef (patch) | |
tree | 6d8a30ea2029447d7f95a2ef6052f29b49af3933 /activerecord/CHANGELOG.md | |
parent | f1637492f12fcf8a45835d9b9009b107c69dc3eb (diff) | |
parent | e170014113154a4fcea3f3ffc2b991a918661e9a (diff) | |
download | rails-bcf0e08a8df372ef1be376587e5bc206c740e5ef.tar.gz rails-bcf0e08a8df372ef1be376587e5bc206c740e5ef.tar.bz2 rails-bcf0e08a8df372ef1be376587e5bc206c740e5ef.zip |
Merge pull request #9220 from robertomiranda/where-with-empty-hash
Active Record: Change behaviour with empty hash in where clause
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index e102adcb4d..573b7512a9 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,9 @@ ## Rails 4.0.0 (unreleased) ## +* Raise ArgumentError instead of generate invalid SQL when empty hash is used in where clause value + + Roberto Miranda + * Quote numeric values being compared to non-numeric columns. Otherwise, in some database, the string column values will be coerced to a numeric allowing 0, 0.0 or false to match any string starting with a non-digit. |