From: Roan Kattouw Date: Sun, 14 Dec 2008 17:44:13 +0000 (+0000) Subject: Follow-up to r44584: finishing comment. X-Git-Tag: 1.31.0-rc.0~43968 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=41427131951b2fab55378cf460bd108a45277348;p=lhc%2Fweb%2Fwiklou.git Follow-up to r44584: finishing comment. --- diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index f26335f903..b920944603 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -117,7 +117,8 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase { $this->addTables('langlinks'); $this->addWhere('page_id=ll_from'); $this->addOption('STRAIGHT_JOIN'); - // We have to GROUP BY + // We have to GROUP BY all selected fields to stop + // PostgreSQL from whining $this->addOption('GROUP BY', implode(', ', $selectFields)); $forceNameTitleIndex = false; }