Module: Sequel::JDBC::SQLite::ForeignKeyListPragmaConvertorFix

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 fields are of type java.sql.types.NUMERIC even though they contain non-numeric data.



22
23
24
# File 'lib/sequel/adapters/jdbc/sqlite.rb', line 22

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