You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We "stub" the execute method to simulate raising a deadlock victim exception once.
141
-
connection.class.class_evaldo
142
-
defexecute_with_deadlock_exception(sql, *args)
143
-
if !@raised_deadlock_exception && sql == "SELECT 1 as [one]"
144
-
sql="RAISERROR('Transaction (Process ID #{Process.pid}) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.: #{sql}', 13, 1)"
145
-
@raised_deadlock_exception=true
146
-
elsif@raised_deadlock_exception == true && sql =~ /RAISERROR\('Transaction \(Process ID \d+\) was deadlocked on lock resources with another process and has been chosen as the deadlock victim\. Rerun the transaction\.: SELECT 1 as \[one\]', 13, 1\)/
error=TinyTds::Error.new("Transaction (Process ID #{Process.pid}) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.: #{sql}")
0 commit comments