diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-08 11:29:47 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-08 11:29:48 -0200 |
commit | 01e67316d8c802df3928b53d0e0ce9153044f5ad (patch) | |
tree | bdb641a8a7c5c7051cdfdcb650d1b909b395ab6a /activerecord | |
parent | 85e1c4a058b32e3d1358ca5e24b469bdd658fc9c (diff) | |
download | rails-01e67316d8c802df3928b53d0e0ce9153044f5ad.tar.gz rails-01e67316d8c802df3928b53d0e0ce9153044f5ad.tar.bz2 rails-01e67316d8c802df3928b53d0e0ce9153044f5ad.zip |
Improve changelog entries in AR
Describe better the changes related to raising errors with empty
array/hash values in where clauses.
[ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index c0bef5fb46..69394c9f64 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,13 +1,14 @@ ## Rails 4.0.0 (unreleased) ## -* Change behaviour with empty array in where clause, - the SQL generated when when were passed an empty array was insecure in some cases +* Raise `ArgumentError` instead of generating `column IN (NULL)` SQL when + empty array is used in where clause value. - Roberto Miranda + *Roberto Miranda* -* Raise ArgumentError instead of generate invalid SQL when empty hash is used in where clause value +* Raise `ArgumentError` instead of generating invalid SQL when empty hash is + used in where clause value. - Roberto Miranda + *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 |