jenkins-bot has submitted this change and it was merged.

Change subject: When getting number of signatures, count on indexed column
......................................................................


When getting number of signatures, count on indexed column

When getting number of signatures, count on the indexed column pt_id,
rather than doing COUNT(*)

Bug: 65850
Change-Id: Ifa1354545cba6c98cd5976812dc6c837d22ec571
---
M TagPetition.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Aaron Schulz: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TagPetition.php b/TagPetition.php
index 97bab8f..a52e5a1 100644
--- a/TagPetition.php
+++ b/TagPetition.php
@@ -76,7 +76,7 @@
        static function getNumberOfSignatures( $petitionName ) {
                $dbr = wfGetDB( DB_SLAVE );
                $num = $dbr->selectField( 'petition_data',
-                       'count(*)',
+                       'count(pt_id)',
                        array('pt_petitionname' => $petitionName)
                        );
                return $num;

-- 
To view, visit https://gerrit.wikimedia.org/r/139126
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifa1354545cba6c98cd5976812dc6c837d22ec571
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Petition
Gerrit-Branch: master
Gerrit-Owner: Pcoombe <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to