From: Mark A. Hershberger Date: Tue, 3 Jan 2012 23:42:15 +0000 (+0000) Subject: re Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers X-Git-Tag: 1.31.0-rc.0~25570 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=00e3f4d8c39a34137218c2dc7d46df9081510656;p=lhc%2Fweb%2Fwiklou.git re Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers Authors: "Max" and Tim Landscheidt Unquote 'null' --- diff --git a/CREDITS b/CREDITS index 5e568a5d3f..fc3949ef43 100644 --- a/CREDITS +++ b/CREDITS @@ -131,6 +131,7 @@ following names for their contribution to the product. * Mathias Ertl * Matthew Britton * mati +* Max * Max Sikström * merl * Michael Dale @@ -170,6 +171,7 @@ following names for their contribution to the product. * Str4nd * svip * The Evil IP address +* Tim Landscheidt * Tisane * Umherirrender * Van de Bugger diff --git a/maintenance/rebuildrecentchanges.php b/maintenance/rebuildrecentchanges.php index 5cacac6577..92d6090247 100644 --- a/maintenance/rebuildrecentchanges.php +++ b/maintenance/rebuildrecentchanges.php @@ -119,11 +119,11 @@ class RebuildRecentchanges extends Maintenance { if ( $row ) { $lastOldId = intval( $row->rev_id ); # Grab the last text size if available - $lastSize = !is_null( $row->rev_len ) ? intval( $row->rev_len ) : 'NULL'; + $lastSize = !is_null( $row->rev_len ) ? intval( $row->rev_len ) : null; } else { # No previous edit $lastOldId = 0; - $lastSize = 'NULL'; + $lastSize = null; $new = 1; // probably true } }