class Sequel::JDBC::Oracle::Dataset

Dataset class for Oracle datasets accessed via JDBC.

Constants

NUMERIC_TYPE
TIMESTAMPTZ_TYPES
TIMESTAMP_TYPE

Public Instance Methods

type_convertor(map, meta, type, i) click to toggle source
Calls superclass method Sequel::JDBC::Dataset#type_convertor
# File lib/sequel/adapters/jdbc/oracle.rb, line 124
def type_convertor(map, meta, type, i)
  case type
  when NUMERIC_TYPE
    if meta.getScale(i) == 0
      map[:OracleDecimal]
    else
      super
    end
  when *TIMESTAMPTZ_TYPES
    map[TIMESTAMP_TYPE]
  else
    super
  end
end