blob: 997613d7beedbd9190088c56b3cafefd3ecbc008 (
plain) (
tree)
|
|
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
module OID # :nodoc:
class Bytea < Type::Binary # :nodoc:
def type_cast_from_database(value)
return if value.nil?
PGconn.unescape_bytea(super)
end
end
end
end
end
end
|