From 0e5ad9bbdec3582ecef1abf8b39b0545bc524936 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Fri, 28 Nov 2008 11:36:04 +0000 Subject: [PATCH] Allow easier debugging of this module by distinguishing between the two queries --- includes/api/ApiQueryBacklinks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 48d8e85383..6533e8bbfc 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -124,9 +124,9 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { private function prepareSecondQuery($resultPageSet = null) { /* SELECT page_id, page_title, page_namespace, page_is_redirect, pl_title, pl_namespace - * FROM pagelinks, page WHERE pl_from=page_id - * AND (pl_title='Foo' AND pl_namespace=0) OR (pl_title='Bar' AND pl_namespace=1) - * LIMIT 11 ORDER BY pl_namespace, pl_title, pl_from + FROM pagelinks, page WHERE pl_from=page_id + AND (pl_title='Foo' AND pl_namespace=0) OR (pl_title='Bar' AND pl_namespace=1) + ORDER BY pl_namespace, pl_title, pl_from LIMIT 11 */ $db = $this->getDB(); $this->addTables(array('page', $this->bl_table)); @@ -186,7 +186,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { $this->prepareFirstQuery($resultPageSet); $db = $this->getDB(); - $res = $this->select(__METHOD__); + $res = $this->select(__METHOD__.'::firstQuery'); $count = 0; $this->data = array (); @@ -215,7 +215,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { { $this->resetQueryParams(); $this->prepareSecondQuery($resultPageSet); - $res = $this->select(__METHOD__); + $res = $this->select(__METHOD__.'::secondQuery'); $count = 0; while($row = $db->fetchObject($res)) { -- 2.20.1