r57995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57994‎ | r57995 | r57996 >
Date:06:18, 22 October 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix syntax errors from r57989
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryAllpages.php (modified) (history)
  • /trunk/phase3/maintenance/namespaceDupes.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/namespaceDupes.php
@@ -211,7 +211,7 @@
212212 $titleSql AS title
213213 FROM {$table}
214214 WHERE {$page}_namespace=0
215 - AND {$page}_title " . $this->db->buildLike( $name . ':', $this-db->anyString() );
 215+ AND {$page}_title " . $this->db->buildLike( $name . ':', $this->db->anyString() );
216216
217217 $result = $this->db->query( $sql, __METHOD__ );
218218
Index: trunk/phase3/includes/api/ApiQueryAllpages.php
@@ -65,7 +65,7 @@
6666 $from = (is_null($params['from']) ? null : $this->titlePartToKey($params['from']));
6767 $this->addWhereRange('page_title', $dir, $from, null);
6868 if (isset ($params['prefix']))
69 - $this->addWhere('page_title' . $db->buildLike($this->titlePartToKey($params['prefix']), $db->->anyString()));
 69+ $this->addWhere('page_title' . $db->buildLike($this->titlePartToKey($params['prefix']), $db->anyString()));
7070
7171 if (is_null($resultPageSet)) {
7272 $selectFields = array (
@@ -270,4 +270,4 @@
271271 public function getVersion() {
272272 return __CLASS__ . ': $Id$';
273273 }
274 -}
\ No newline at end of file
 274+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r57989(bug 20275) Fixed LIKE queries on SQLite backend...maxsem19:53, 21 October 2009

Status & tagging log