dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd513eb
)
Found the errno for deadlocks on MsSQL, let's return a proper bool instead of no-op.
author
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 18 Jul 2008 12:54:12 +0000
(12:54 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 18 Jul 2008 12:54:12 +0000
(12:54 +0000)
includes/db/DatabaseMssql.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseMssql.php
b/includes/db/DatabaseMssql.php
index
7334244
..
32fe28b
100644
(file)
--- 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
;
}
/**