Removed extra GROUP BY terms introduced in revision 13603, pending review, following...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 21 Apr 2006 03:35:01 +0000 (03:35 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 21 Apr 2006 03:35:01 +0000 (03:35 +0000)
includes/SpecialListusers.php
includes/SpecialMostcategories.php
includes/SpecialMostlinked.php
includes/SpecialMostrevisions.php

index 3bf16e5..17cc923 100644 (file)
@@ -135,7 +135,7 @@ class ListUsersPage extends QueryPage {
                        "FROM $user ".
                        "LEFT JOIN $user_groups ON user_id=ug_user " .
                        $this->userQueryWhere( $dbr ) .
-                       " GROUP BY user_name, user_id";
+                       " GROUP BY user_name";
 
                return $sql;
        }
index 0deaac9..17dbb5d 100644 (file)
@@ -34,7 +34,7 @@ class MostcategoriesPage extends QueryPage {
                        FROM $categorylinks
                        LEFT JOIN $page ON cl_from = page_id
                        WHERE page_namespace = " . NS_MAIN . "
-                       GROUP BY cl_from, page_namespace, page_title
+                       GROUP BY cl_from
                        HAVING COUNT(*) > 1
                        ";
        }
index 5747174..6b51860 100644 (file)
@@ -37,7 +37,7 @@ class MostlinkedPage extends QueryPage {
                                page_namespace
                        FROM $pagelinks
                        LEFT JOIN $page ON pl_namespace=page_namespace AND pl_title=page_title
-                       GROUP BY pl_namespace,pl_title,page_namespace
+                       GROUP BY pl_namespace,pl_title
                        HAVING COUNT(*) > 1";
        }
 
index 46c66ec..6bc807e 100644 (file)
@@ -36,7 +36,7 @@ class MostrevisionsPage extends QueryPage {
                        FROM $revision
                        LEFT JOIN $page ON page_id = rev_page
                        WHERE page_namespace = " . NS_MAIN . "
-                       GROUP BY rev_page, page_namespace, page_title
+                       GROUP BY rev_page
                        HAVING COUNT(*) > 1
                        ";
        }