We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4074e commit ac52389Copy full SHA for ac52389
lib/active_record/connection_adapters/sqlserver/database_statements.rb
@@ -83,7 +83,7 @@ def transaction_with_retry_deadlock_victim(options = {})
83
decrement_open_transactions
84
# handle deadlock victim retries at the outermost transaction
85
if open_transactions == 0
86
- if translate_exception(database_transaction_rollback, database_transaction_rollback.message).is_a?(DeadlockVictim)
+ if database_transaction_rollback.is_a?(DeadlockVictim)
87
# SQL Server has already rolled back, so rollback activerecord's history
88
rollback_transaction_records(true)
89
retry
0 commit comments