mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix quote_bound_value to not map Strings #1416 [htonl]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -895,11 +895,10 @@ module ActiveRecord #:nodoc:
|
||||
end
|
||||
|
||||
def quote_bound_value(value)
|
||||
case value
|
||||
when Enumerable
|
||||
value.map { |v| connection.quote(v) }.join(',')
|
||||
else
|
||||
connection.quote(value)
|
||||
if (value.respond_to?(:map) && !value.is_a?(String))
|
||||
value.map { |v| connection.quote(v) }.join(',')
|
||||
else
|
||||
connection.quote(value)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user