Module | Sequel::JDBC::Derby::DatabaseMethods |
In: |
lib/sequel/adapters/jdbc/derby.rb
|
PRIMARY_KEY_INDEX_RE | = | /\Asql\d+\z/i.freeze |
Derby doesn‘t support casting integer to varchar, only integer to char, and char(254) appears to have the widest support (with char(255) failing). This does add a bunch of extra spaces at the end, but those will be trimmed elsewhere.
# File lib/sequel/adapters/jdbc/derby.rb, line 17 17: def cast_type_literal(type) 18: (type == String) ? 'CHAR(254)' : super 19: end