From 01e67316d8c802df3928b53d0e0ce9153044f5ad Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 8 Feb 2013 11:29:47 -0200 Subject: Improve changelog entries in AR Describe better the changes related to raising errors with empty array/hash values in where clauses. [ci skip] --- activerecord/CHANGELOG.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'activerecord') 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 -- cgit v1.2.3