otherwise, it is incorrectly translated by ActiveRecord::AbstractAdapter
# lib/active_record/connection_adapters/abstract_adapter.rb:589
def translate_exception(exception, message)
# override in derived class
case exception
when RuntimeError
exception
else
ActiveRecord::StatementInvalid.new(message)
end
end
it also breaks compatibility with SQLite3 gem by much.
otherwise, it is incorrectly translated by
ActiveRecord::AbstractAdapter
it also breaks compatibility with SQLite3 gem by much.