Class: ActiveRecord::ConnectionAdapters::Redshift::OID::Bytea
- Inherits:
-
Type::Binary
- Object
- Type::Binary
- ActiveRecord::ConnectionAdapters::Redshift::OID::Bytea
- Defined in:
- lib/active_record/connection_adapters/redshift/oid/bytea.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#type_cast_from_database(value) ⇒ Object
6 7 8 9 |
# File 'lib/active_record/connection_adapters/redshift/oid/bytea.rb', line 6 def type_cast_from_database(value) return if value.nil? PGconn.unescape_bytea(super) end |