Sha256: 058d48e63a5a8d130aa92d4af94776f07fd52eabab1fd520441831f30c2a0425
Contents?: true
Size: 797 Bytes
Versions: 66
Compression:
Stored size: 797 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module ConnectionAdapters module CipherStashPG 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 cast(value) value end end end end end end
Version data entries
66 entries across 32 versions & 1 rubygems