This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid calling translate_exception with non-PGError exceptions.
translate_exception was changed and now expects the exception to respond to "result", here: rails#6397 ActiveRecord::StatementInvalid, which is the exception sometimes caught and retried in the "connection retry" logic, does not respond to "result" and fails on the call to translate_exception. Fixes replication test suite failure. This fix can be squashed with the other "connection retry" commit (21e4354) on future upgrades.
- Loading branch information