Found the errno for deadlocks on MsSQL, let's return a proper bool instead of no-op.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 18 Jul 2008 12:54:12 +0000 (12:54 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 18 Jul 2008 12:54:12 +0000 (12:54 +0000)
includes/db/DatabaseMssql.php

index 7334244..32fe28b 100644 (file)
@@ -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;
        }
 
        /**