class Sequel::JDBC::SqlAnywhere::Dataset

Constants

BOOLEAN_METHOD
SMALLINT_TYPE

Private Instance Methods

default_time_format() click to toggle source

JDBC SQLAnywhere driver does not appear to handle fractional times correctly.

# File lib/sequel/adapters/jdbc/sqlanywhere.rb, line 60
def default_time_format
  "'%H:%M:%S'"
end
sqltime_precision() click to toggle source

Set to zero to work around JDBC SQLAnywhere driver bug.

# File lib/sequel/adapters/jdbc/sqlanywhere.rb, line 65
def sqltime_precision
  0
end
type_convertor(map, meta, type, i) click to toggle source
Calls superclass method Sequel::JDBC::Dataset#type_convertor
# File lib/sequel/adapters/jdbc/sqlanywhere.rb, line 76
def type_convertor(map, meta, type, i)
  if convert_smallint_to_bool && type == SMALLINT_TYPE
    BOOLEAN_METHOD
  else
    super
  end
end