Follow-up to r44584: finishing comment.
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 14 Dec 2008 17:44:13 +0000 (17:44 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 14 Dec 2008 17:44:13 +0000 (17:44 +0000)
includes/api/ApiQueryAllpages.php

index f26335f..b920944 100644 (file)
@@ -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;
                }