diff options
author | Dennis Taylor <dennis.taylor@clio.com> | 2017-07-05 15:21:25 -0700 |
---|---|---|
committer | Dennis Taylor <dennis.taylor@clio.com> | 2017-07-05 17:02:59 -0700 |
commit | ad0bde58d4e5dd3686fdbdc21c7e4b6d71e371e4 (patch) | |
tree | 2d267c1ae61cb23758cc4ed6ff1edf4a9d054460 /activerecord/test/cases/database_statements_test.rb | |
parent | c8ce3459648ce0f86646b564ce1c0bb16a4b48eb (diff) | |
download | rails-ad0bde58d4e5dd3686fdbdc21c7e4b6d71e371e4.tar.gz rails-ad0bde58d4e5dd3686fdbdc21c7e4b6d71e371e4.tar.bz2 rails-ad0bde58d4e5dd3686fdbdc21c7e4b6d71e371e4.zip |
Don't translate non-database exceptions.
The AbstractAdapter will translate all StandardErrors generated during the course of a query into ActiveRecord::StatementInvalids. Unfortunately, it'll also mangle non-database-related errors generated in ActiveSupport::Notification callbacks after the query has successfully completed. This should prevent it from translating errors from ActiveSupport::Notifications.
Diffstat (limited to 'activerecord/test/cases/database_statements_test.rb')
0 files changed, 0 insertions, 0 deletions