Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hstore values are all strings

  • Loading branch information...
commit 5b318a84e79d9b0a8276b382d076920befa03ca8 1 parent b04880c
Joel authored
View
2  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -87,7 +87,7 @@ def escape_hstore(value)
value.nil? ? 'NULL'
: value =~ /[=\s,>]/ ? '"%s"' % value.gsub(/(["\\])/, '\\\\\1')
: value == "" ? '""'
- : value.gsub(/(["\\])/, '\\\\\1')
+ : value.to_s.gsub(/(["\\])/, '\\\\\1')
end
end
# :startdoc:
Please sign in to comment.
Something went wrong with that request. Please try again.