class ActiveRecord::ConnectionAdapters::RedshiftAdapter::OID::Vector
Attributes
delim[R]
subtype[R]
Public Class Methods
new(delim, subtype)
click to toggle source
delim
corresponds to the ‘typdelim` column in the pg_types table. subtype
is derived from the `typelem` column in the pg_types table.
# File lib/active_record/connection_adapters/redshift/oid.rb, line 64 def initialize(delim, subtype) @delim = delim @subtype = subtype end
Public Instance Methods
type_cast(value)
click to toggle source
FIXME: this should probably split on delim
and use subtype
to cast the values. Unfortunately, the current Rails behavior is to just return the string.
# File lib/active_record/connection_adapters/redshift/oid.rb, line 72 def type_cast(value) value end