Module: Sequel::JDBC::SQLite::TableInfoPragmaConvertorFix

Defined in:
lib/sequel/adapters/jdbc/sqlite.rb

Instance Method Summary collapse

Instance Method Details

#type_convertor(_, _, _, i) ⇒ Object

For the use of the convertor for String, working around a bug in jdbc-sqlite3 that reports dflt_value field is of type java.sql.types.NUMERIC even though they contain string data.



31
32
33
# File 'lib/sequel/adapters/jdbc/sqlite.rb', line 31

def type_convertor(_, _, _, i)
  i == 5 ? TypeConvertor::CONVERTORS[:String] : super
end