1--- lib/dbd/pg/type.rb.orig	2018-04-15 06:18:20 UTC
2+++ lib/dbd/pg/type.rb
3@@ -32,7 +32,7 @@ module DBI::DBD::Pg::Type
4         # Escapes the supplied data. Has no effect on the object.
5         #
6         def escape_bytea(str)
7-            PGconn.escape_bytea(str)
8+            PG::Connection.escape_bytea(str)
9         end
10
11         #
12@@ -62,7 +62,7 @@ module DBI::DBD::Pg::Type
13             #
14             # Fix this for now, but beware that we'll have to unfix this as
15             # soon as they fix their end.
16-            ret = PGconn.unescape_bytea(obj)
17+            ret = PG::Connection.unescape_bytea(obj)
18
19             # XXX
20             # String#split does not properly create a full array if the the
21