Classes and Modules
Constants
DB2_TYPES | = | { :boolean => tt.method(:boolean), :int => tt.method(:int), :blob => ::Sequel::SQL::Blob.method(:new), :time => ::Sequel.method(:string_to_time), :date => ::Sequel.method(:string_to_date) } |
Hash holding type translation methods, used by Sequel::IBMDB::Dataset#fetch_rows. |
Attributes
convert_smallint_to_bool | [RW] |
Whether to convert smallint values to bool, true by default. Can also be overridden per dataset. |
Public Instance methods
boolean
(s)
[show source]
# File lib/sequel/adapters/ibmdb.rb, line 16 def boolean(s) !s.to_i.zero? end