From 00e3f4d8c39a34137218c2dc7d46df9081510656 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Tue, 3 Jan 2012 23:42:15 +0000 Subject: [PATCH] re Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers Authors: "Max" and Tim Landscheidt Unquote 'null' --- CREDITS | 2 ++ maintenance/rebuildrecentchanges.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 } } -- 2.20.1