* (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 22 Oct 2009 15:51:01 +0000 (15:51 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 22 Oct 2009 15:51:01 +0000 (15:51 +0000)
RELEASE-NOTES
maintenance/updateArticleCount.php

index fc3a38d..02b4b19 100644 (file)
@@ -585,6 +585,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 20268) Fixed row count estimation on SQLite backend
 * (bug 20275) Fixed LIKE queries on SQLite backend
 * (bug 21234) Moving subpages of titles containing \\ now works properly
+* (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL
 
 == API changes in 1.16 ==
 
index d2776e5..e681845 100644 (file)
@@ -77,7 +77,7 @@ class UpdateArticleCount extends Maintenance {
        private function makeSql( $dbr ) {
                list( $page, $pagelinks ) = $dbr->tableNamesN( 'page', 'pagelinks' );
                $nsset = $this->makeNsSet();
-               return "SELECT COUNT(DISTINCT page_namespace, page_title) AS pagecount " .
+               return "SELECT COUNT(DISTINCT page_id) AS pagecount " .
                        "FROM $page, $pagelinks " .
                        "WHERE pl_from=page_id and page_namespace IN ( $nsset ) " .
                        "AND page_is_redirect = 0 AND page_len > 0";