From e170014113154a4fcea3f3ffc2b991a918661e9a Mon Sep 17 00:00:00 2001 From: robertomiranda Date: Fri, 8 Feb 2013 00:51:43 -0500 Subject: Change behaviour with empty hash in where clause --- activerecord/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/CHANGELOG.md') 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. -- cgit v1.2.3