diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-04-17 22:30:27 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-04-17 22:30:27 +0100 |
commit | b839d4093356914b305b6fd0140782e8e198402e (patch) | |
tree | fd14a24f504f4fee9a202b45abbac27c155fd04c /activerecord | |
parent | 2a5e317951fa28c570dc03c562d506ab366050ae (diff) | |
download | rails-b839d4093356914b305b6fd0140782e8e198402e.tar.gz rails-b839d4093356914b305b6fd0140782e8e198402e.tar.bz2 rails-b839d4093356914b305b6fd0140782e8e198402e.zip |
Fix test_load_save in test/cases/binary_test.rb (thanks @tenderlove for actually working out how to fix it)
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index e74ec84e81..acc3e9c5e3 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -366,7 +366,7 @@ module ActiveRecord case value when String return super unless 'bytea' == column.sql_type - escape_bytea(value) + { :value => value, :format => 1 } else super end @@ -1093,4 +1093,3 @@ module ActiveRecord end end end - |