r40412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40411‎ | r40412 | r40413 >
Date:01:29, 4 September 2008
Author:ialex
Status:old
Tags:
Comment:
No need to wrap it in a ResultWrapper object as Database::query() already returns a ResultWrapper object
Modified paths:
  • /trunk/phase3/includes/LinkBatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LinkBatch.php
@@ -134,7 +134,7 @@
135135 $sql = "SELECT page_id, page_namespace, page_title, page_len, page_is_redirect FROM $page WHERE $set";
136136
137137 // Do query
138 - $res = new ResultWrapper( $dbr, $dbr->query( $sql, __METHOD__ ) );
 138+ $res = $dbr->query( $sql, __METHOD__ );
139139 wfProfileOut( __METHOD__ );
140140 return $res;
141141 }