* (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL
This commit is contained in:
parent
c07f1e0c5e
commit
8b13fa81f1
2 changed files with 2 additions and 1 deletions
|
|
@ -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 ==
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue