Method: Sequel::MySQL.convert_tinyint_to_bool

Defined in:
lib/sequel/adapters/shared/mysql.rb

.convert_tinyint_to_boolObject

Sequel converts the column type tinyint(1) to a boolean by default when using the native MySQL or Mysql2 adapter. You can turn off the conversion by setting this to false. This setting is ignored when connecting to MySQL via the do or jdbc adapters, both of which automatically do the conversion.



19
20
21
# File 'lib/sequel/adapters/shared/mysql.rb', line 19

def convert_tinyint_to_bool
  @convert_tinyint_to_bool
end