Index: trunk/phase3/includes/Article.php |
— | — | @@ -710,12 +710,19 @@ |
711 | 711 | |
712 | 712 | $deletedBit = $dbr->bitAnd( 'rev_deleted', Revision::DELETED_USER ); // username hidden? |
713 | 713 | |
714 | | - $sql = "SELECT {$userTable}.*, rev_user_text as user_name, MAX(rev_timestamp) as timestamp |
715 | | - FROM $revTable LEFT JOIN $userTable ON rev_user = user_id |
| 714 | + $groupby = 'rev_user, rev_user_text'; |
| 715 | + if (! $dbr->implicitGroupby()) { |
| 716 | + $groupby .= ', user_id, user_name, user_real_name, user_email, user_editcount'; |
| 717 | + } |
| 718 | + |
| 719 | + $sql = "SELECT user_id, user_name, user_real_name, user_email, user_editcount, |
| 720 | + rev_user_text AS user_name, MAX(rev_timestamp) AS timestamp |
| 721 | + FROM $revTable |
| 722 | + LEFT JOIN $userTable ON rev_user = user_id |
716 | 723 | WHERE rev_page = $pageId |
717 | 724 | $excludeCond |
718 | 725 | AND $deletedBit = 0 |
719 | | - GROUP BY rev_user, rev_user_text |
| 726 | + GROUP BY $groupby |
720 | 727 | ORDER BY timestamp DESC"; |
721 | 728 | |
722 | 729 | if ( $limit > 0 ) |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -636,6 +636,8 @@ |
637 | 637 | * (bug 19391) Fix caching for Recent ChangesFeed. |
638 | 638 | * (bug 21455) Fixed "Watch this page" checkbox appearing on some special pages |
639 | 639 | even to non-logged in users |
| 640 | +* (bug 21196) Allow $wgMaxCredits to work for Postgres (and possible other |
| 641 | + non-MySQL) backends. |
640 | 642 | |
641 | 643 | == API changes in 1.16 == |
642 | 644 | |