| Module | Sequel::JDBC::SQLite::DatabaseMethods |
| In: |
lib/sequel/adapters/jdbc/sqlite.rb
|
| DATABASE_ERROR_REGEXPS | = | Sequel::SQLite::DatabaseMethods::DATABASE_ERROR_REGEXPS.merge(/Abort due to constraint violation/ => ConstraintViolation).freeze |
Swallow pointless exceptions when the foreign key list pragma doesn‘t return any rows.
# File lib/sequel/adapters/jdbc/sqlite.rb, line 23
23: def foreign_key_list(table, opts=OPTS)
24: super
25: rescue Sequel::DatabaseError => e
26: raise unless foreign_key_error?(e)
27: []
28: end