mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
TransactionSerializationError
should inherit StatementInvalid
for backward compatibility
Originally `TransactionSerializationError` was `StatementInvalid` in Rails 5.0. It should keep backward compatibility.
This commit is contained in:
parent
c205e3fca3
commit
f78eda63ed
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ module ActiveRecord
|
|||
#
|
||||
# * http://www.postgresql.org/docs/current/static/transaction-iso.html
|
||||
# * https://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html#error_er_lock_deadlock
|
||||
class TransactionSerializationError < ActiveRecordError
|
||||
class TransactionSerializationError < StatementInvalid
|
||||
end
|
||||
|
||||
# IrreversibleOrderError is raised when a relation's order is too complex for
|
||||
|
|
Loading…
Reference in a new issue