From: Chad Horohoe Date: Fri, 18 Jul 2008 12:54:12 +0000 (+0000) Subject: Found the errno for deadlocks on MsSQL, let's return a proper bool instead of no-op. X-Git-Tag: 1.31.0-rc.0~46457 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=fc8f3277bbcda441c71ac6af2641ab1463152e0b;p=lhc%2Fweb%2Fwiklou.git Found the errno for deadlocks on MsSQL, let's return a proper bool instead of no-op. --- 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; } /**