Sha256: 4104f575d3252a54e7ebdbb9c73865e0cdd858f639894b7731eed21cadc729f9
Contents?: true
Size: 768 Bytes
Versions: 52
Compression:
Stored size: 768 Bytes
Contents
module ActiveRecord module ConnectionAdapters module PostgreSQL module OID # :nodoc: class Vector < Type::Value # :nodoc: attr_reader :delim, :subtype # +delim+ corresponds to the `typdelim` column in the pg_types # table. +subtype+ is derived from the `typelem` column in the # pg_types table. def initialize(delim, subtype) @delim = delim @subtype = subtype end # 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. def type_cast(value) value end end end end end end
Version data entries
52 entries across 51 versions & 8 rubygems