dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Commit of various live hacks"
[lhc/web/wiklou.git]
/
includes
/
db
/
DatabaseMysql.php
diff --git
a/includes/db/DatabaseMysql.php
b/includes/db/DatabaseMysql.php
index
c5100b5
..
fab0e96
100644
(file)
--- a/
includes/db/DatabaseMysql.php
+++ b/
includes/db/DatabaseMysql.php
@@
-193,7
+193,7
@@
class DatabaseMysql extends DatabaseBase {
/**
* @param $res ResultWrapper
/**
* @param $res ResultWrapper
- * @return object|
stdClass
+ * @return object|
bool
* @throws DBUnexpectedError
*/
function fetchObject( $res ) {
* @throws DBUnexpectedError
*/
function fetchObject( $res ) {
@@
-217,7
+217,7
@@
class DatabaseMysql extends DatabaseBase {
/**
* @param $res ResultWrapper
/**
* @param $res ResultWrapper
- * @return array
+ * @return array
|bool
* @throws DBUnexpectedError
*/
function fetchRow( $res ) {
* @throws DBUnexpectedError
*/
function fetchRow( $res ) {
@@
-744,6
+744,7
@@
class DatabaseMysql extends DatabaseBase {
* @param $write array
* @param $method string
* @param $lowPriority bool
* @param $write array
* @param $method string
* @param $lowPriority bool
+ * @return bool
*/
public function lockTables( $read, $write, $method, $lowPriority = true ) {
$items = array();
*/
public function lockTables( $read, $write, $method, $lowPriority = true ) {
$items = array();
@@
-759,13
+760,16
@@
class DatabaseMysql extends DatabaseBase {
}
$sql = "LOCK TABLES " . implode( ',', $items );
$this->query( $sql, $method );
}
$sql = "LOCK TABLES " . implode( ',', $items );
$this->query( $sql, $method );
+ return true;
}
/**
* @param $method string
}
/**
* @param $method string
+ * @return bool
*/
public function unlockTables( $method ) {
$this->query( "UNLOCK TABLES", $method );
*/
public function unlockTables( $method ) {
$this->query( "UNLOCK TABLES", $method );
+ return true;
}
/**
}
/**