class ActiveRecord::ConnectionAdapters::PostgreSQL::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/arjdbc/postgresql/base/oid.rb, line 65
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/arjdbc/postgresql/base/oid.rb, line 73
def type_cast(value)
  value
end