From 41427131951b2fab55378cf460bd108a45277348 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 14 Dec 2008 17:44:13 +0000 Subject: [PATCH] Follow-up to r44584: finishing comment. --- includes/api/ApiQueryAllpages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1