diff options
author | Ryan Fitzgerald <rwfitzge@gmail.com> | 2012-04-24 20:59:45 -0700 |
---|---|---|
committer | Ryan Fitzgerald <rwfitzge@gmail.com> | 2012-04-24 20:59:45 -0700 |
commit | 1a05e15e13e8c4dbe67cf15d83d536f1cf6fbecf (patch) | |
tree | 53b40cf6c80f2a4db1f31e692172f06f1ad9ffec /activerecord/lib | |
parent | 0c46dbbc4557acb1e0af1c8ce697305398070922 (diff) | |
download | rails-1a05e15e13e8c4dbe67cf15d83d536f1cf6fbecf.tar.gz rails-1a05e15e13e8c4dbe67cf15d83d536f1cf6fbecf.tar.bz2 rails-1a05e15e13e8c4dbe67cf15d83d536f1cf6fbecf.zip |
Restore .to_s to escape_hstore
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 8248eb9d0b..37d9ef1bf1 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -89,7 +89,7 @@ module ActiveRecord def escape_hstore(value) value.nil? ? 'NULL' : value == "" ? '""' - : '"%s"' % value.gsub(/(["\\])/, '\\\\\1') + : '"%s"' % value.to_s.gsub(/(["\\])/, '\\\\\1') end end # :startdoc: |