https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112119

Revision: 112119
Author:   emsmith
Date:     2012-02-22 16:57:49 +0000 (Wed, 22 Feb 2012)
Log Message:
-----------
bug 34090 - cast the naughty column so it can be signed, the greatest still 
keeps it from going less then zero (and rolling over)

Modified Paths:
--------------
    trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php

Modified: trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php
===================================================================
--- trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php        
2012-02-22 16:53:18 UTC (rev 112118)
+++ trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php        
2012-02-22 16:57:49 UTC (rev 112119)
@@ -184,7 +184,7 @@
                );
 
                foreach ( $filters as $filter => $direction) {
-                       $value = ($direction > 0) ? 'afc_filter_count + 1' : 
'GREATEST(0, afc_filter_count - 1)';
+                       $value = ($direction > 0) ? 'afc_filter_count + 1' : 
'GREATEST(0, CONVERT(afc_filter_count, SIGNED) - 1)';
 
                        # Update each row with the new count.
                        $dbw->update(


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

Reply via email to