| Index: trunk/phase3/includes/api/ApiQueryAllpages.php |
| — | — | @@ -117,7 +117,8 @@ |
| 118 | 118 | $this->addTables('langlinks'); |
| 119 | 119 | $this->addWhere('page_id=ll_from'); |
| 120 | 120 | $this->addOption('STRAIGHT_JOIN'); |
| 121 | | - // We have to GROUP BY |
| | 121 | + // We have to GROUP BY all selected fields to stop |
| | 122 | + // PostgreSQL from whining |
| 122 | 123 | $this->addOption('GROUP BY', implode(', ', $selectFields)); |
| 123 | 124 | $forceNameTitleIndex = false; |
| 124 | 125 | } |