aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-04-17 22:30:27 +0100
committerJon Leighton <j@jonathanleighton.com>2011-04-17 22:30:27 +0100
commitb839d4093356914b305b6fd0140782e8e198402e (patch)
treefd14a24f504f4fee9a202b45abbac27c155fd04c /activerecord/lib/active_record
parent2a5e317951fa28c570dc03c562d506ab366050ae (diff)
downloadrails-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/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb3
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
-