Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bytea

Inherits:
Type
  • Object
show all
Defined in:
lib/arjdbc/postgresql/base/oid.rb

Instance Method Summary collapse

Methods inherited from Type

#infinity, #simplified_type

Instance Method Details

#typeObject



70
# File 'lib/arjdbc/postgresql/base/oid.rb', line 70

def type; :binary end

#type_cast(value) ⇒ Object



72
73
74
75
# File 'lib/arjdbc/postgresql/base/oid.rb', line 72

def type_cast(value)
  return if value.nil?
  PGconn.unescape_bytea value
end