diff options
author | Joel <joel@renewfund.com> | 2012-02-06 13:22:15 -0800 |
---|---|---|
committer | Joel <joel@renewfund.com> | 2012-02-08 22:28:51 -0800 |
commit | 5b318a84e79d9b0a8276b382d076920befa03ca8 (patch) | |
tree | 20f6b5a957dadd653f20a47ea90ad172727a766f /activerecord/lib | |
parent | b04880cecc6fdc452aeea5d64d078d90dfa2693a (diff) | |
download | rails-5b318a84e79d9b0a8276b382d076920befa03ca8.tar.gz rails-5b318a84e79d9b0a8276b382d076920befa03ca8.tar.bz2 rails-5b318a84e79d9b0a8276b382d076920befa03ca8.zip |
Hstore values are all strings
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index abb0a4adea..692848d3e5 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -87,7 +87,7 @@ module ActiveRecord value.nil? ? 'NULL' : value =~ /[=\s,>]/ ? '"%s"' % value.gsub(/(["\\])/, '\\\\\1') : value == "" ? '""' - : value.gsub(/(["\\])/, '\\\\\1') + : value.to_s.gsub(/(["\\])/, '\\\\\1') end end # :startdoc: |