X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdb%2FDatabaseMssql.php;h=6d072168a12fb04835a84f3eedc12255250d2a63;hp=2c6db103b9eea2a3c153e76a95135e83111efa6b;hb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;hpb=94f52cb76fd07d4a175bffe17320a598d07f5bd6 diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 2c6db103b9..6d072168a1 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -42,18 +42,6 @@ class DatabaseMssql extends DatabaseBase { protected $mPort; - public function cascadingDeletes() { - return true; - } - - public function cleanupTriggers() { - return false; - } - - public function realTimestamps() { - return false; - } - public function implicitGroupby() { return false; } @@ -749,15 +737,15 @@ class DatabaseMssql extends DatabaseBase { * UPDATE wrapper. Takes a condition array and a SET array. * * @param string $table Name of the table to UPDATE. This will be passed through - * DatabaseBase::tableName(). + * Database::tableName(). * * @param array $values An array of values to SET. For each array element, * the key gives the field name, and the value gives the data * to set that field to. The data will be quoted by - * DatabaseBase::addQuotes(). + * Database::addQuotes(). * * @param array $conds An array of conditions (WHERE). See - * DatabaseBase::select() for the details of the format of + * Database::select() for the details of the format of * condition arrays. Use '*' to update all rows. * * @param string $fname The function name of the caller (from __METHOD__), @@ -783,7 +771,7 @@ class DatabaseMssql extends DatabaseBase { $this->mScrollableCursor = false; try { - $ret = $this->query( $sql ); + $this->query( $sql ); } catch ( Exception $e ) { $this->mScrollableCursor = true; throw $e; @@ -798,7 +786,7 @@ class DatabaseMssql extends DatabaseBase { * @param int $mode Constant * - LIST_COMMA: comma separated, no field names * - LIST_AND: ANDed WHERE clause (without the WHERE). See - * the documentation for $conds in DatabaseBase::select(). + * the documentation for $conds in Database::select(). * - LIST_OR: ORed WHERE clause (without the WHERE) * - LIST_SET: comma separated with field names, like a SET clause * - LIST_NAMES: comma separated field names @@ -1097,8 +1085,8 @@ class DatabaseMssql extends DatabaseBase { } /** - * @param string|Blob $s - * @return string + * @param string|int|null|bool|Blob $s + * @return string|int */ public function addQuotes( $s ) { if ( $s instanceof MssqlBlob ) {