diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-15 09:15:35 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-04-15 09:15:35 -0700 |
commit | d7010b533225cab95864e7eda9d5f274d700d6e9 (patch) | |
tree | ad784f6feb9ac597bab58cec86857c70c86756d4 /activerecord/lib | |
parent | a82303e184303a527f30d21d6238df1b919a9620 (diff) | |
parent | 280c5ed1f990c4b29ea214eeaf81d95a8407ce93 (diff) | |
download | rails-d7010b533225cab95864e7eda9d5f274d700d6e9.tar.gz rails-d7010b533225cab95864e7eda9d5f274d700d6e9.tar.bz2 rails-d7010b533225cab95864e7eda9d5f274d700d6e9.zip |
Merge pull request #10214 from mattetti/ar_postgres_bytea
AR postgres binary bug fix
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb index 51f377dfd7..14c97dcefc 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb @@ -20,6 +20,7 @@ module ActiveRecord class Bytea < Type def type_cast(value) + return if value.nil? PGconn.unescape_bytea value end end |