From fc8f3277bbcda441c71ac6af2641ab1463152e0b Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 18 Jul 2008 12:54:12 +0000 Subject: [PATCH] Found the errno for deadlocks on MsSQL, let's return a proper bool instead of no-op. --- includes/db/DatabaseMssql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 7334244d89..32fe28b119 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -868,10 +868,10 @@ class DatabaseMssql extends Database { /** * Should determine if the last failure was due to a deadlock - * - don't know how to do this in MSSQL + * @return bool */ function wasDeadlock() { - return false; + return $this->lastErrno() == 1205; } /** -- 2.20.1