1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #26026 from kamipo/tx_serialization_error_should_inherit_statement_invalid

`TransactionSerializationError` should inherit `StatementInvalid` for backward compatibility
This commit is contained in:
Rafael França 2016-08-03 07:01:01 -03:00 committed by GitHub
commit 8ada07b2b8

View file

@ -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