module Sequel::JDBC::Oracle

Constants

JAVA_BIG_DECIMAL_CONSTRUCTOR

Public Class Methods

OracleClob(r, i) click to toggle source
# File lib/sequel/adapters/jdbc/oracle.rb, line 30
def self.OracleClob(r, i)
  return unless clob = r.getClob(i)
  str = clob.getSubString(1, clob.length)
  clob.freeTemporary if clob.isTemporary
  str
end
OracleDecimal(r, i) click to toggle source
# File lib/sequel/adapters/jdbc/oracle.rb, line 19
def self.OracleDecimal(r, i)
  if v = r.getBigDecimal(i)
    i = v.long_value
    if v == JAVA_BIG_DECIMAL_CONSTRUCTOR.call(i)
      i
    else
      ::Kernel::BigDecimal(v.to_string)
    end
  end
end