diff options
author | Matthew Draper <matthew@trebex.net> | 2017-03-23 03:58:19 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 03:58:19 +1030 |
commit | 911f44f72048708b83e75da067b2d292c8692106 (patch) | |
tree | 8080596d17475ed87688e7a48b76f194205d133f /activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb | |
parent | 22deb92216d83f64fa8e948abe305309b327b33a (diff) | |
parent | f28a331023fab241f694c53802b45fb2d66c2c4f (diff) | |
download | rails-911f44f72048708b83e75da067b2d292c8692106.tar.gz rails-911f44f72048708b83e75da067b2d292c8692106.tar.bz2 rails-911f44f72048708b83e75da067b2d292c8692106.zip |
Merge pull request #28522 from larskanis/replace-deprecated-pg-constants
[PostgreSQL] Replace deprecated PG constants.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb index 8f9d6e7f9b..702fa8175c 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb @@ -6,7 +6,7 @@ module ActiveRecord def deserialize(value) return if value.nil? return value.to_s if value.is_a?(Type::Binary::Data) - PGconn.unescape_bytea(super) + PG::Connection.unescape_bytea(super) end end end |