aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 4d878e6a1d..735c8203aa 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1308,9 +1308,9 @@ module ActiveRecord #:nodoc:
end
def quote_bound_value(value) #:nodoc:
- if (value.respond_to?(:map) && !value.is_a?(String))
- if value.empty?
- "null"
+ if value.respond_to?(:map) && !value.is_a?(String)
+ if value.respond_to?(:empty?) && value.empty?
+ connection.quote(nil)
else
value.map { |v| connection.quote(v) }.join(',')
end