Fixed Special:Wantedtemplates' SQL query to work with PostgreSQL, was throwing the...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 21 Feb 2009 15:27:56 +0000 (15:27 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 21 Feb 2009 15:27:56 +0000 (15:27 +0000)
ERROR: column "templatelinks.tl_namespace" must appear in the GROUP BY clause or be used in an aggregate function

RELEASE-NOTES
includes/specials/SpecialWantedtemplates.php

index cb4546c..d003ff5 100644 (file)
@@ -209,7 +209,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 17538) Use shorter URLs in <link> elements
 * (bug 13778) Hidden input added to the search form so that using the Enter key
   on IE will do a fulltext search like clicking the button does
-* (bug 1061) CSS-added icons next to links display through the text and makes it unreadable in RTL
+* (bug 1061) CSS-added icons next to links display through the text and makes
+  it unreadable in RTL
+* Special:Wantedtemplates now works on PostgreSQL
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
index 43b5cf8..4010ef8 100644 (file)
@@ -42,7 +42,7 @@ class WantedTemplatesPage extends QueryPage {
                            FROM $templatelinks LEFT JOIN
                                 $page ON tl_title = page_title AND tl_namespace = page_namespace
                           WHERE page_title IS NULL AND tl_namespace = ". NS_TEMPLATE ."
-                       GROUP BY tl_title
+                       GROUP BY tl_namespace, tl_title
                        ";
        }