From 537a6eb680b3f7ea9c8eb0c740ae3a02bd64678f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 12 Aug 2011 16:50:03 +0000 Subject: [PATCH] Fix for r94289: we want to skip rows with non-empty sha1, not non-NULL (which is impossible) --- maintenance/populateRevisionSha1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/populateRevisionSha1.php b/maintenance/populateRevisionSha1.php index 3e490d10da..266b65acc4 100644 --- a/maintenance/populateRevisionSha1.php +++ b/maintenance/populateRevisionSha1.php @@ -68,7 +68,7 @@ class PopulateRevisionSha1 extends Maintenance { while ( $blockEnd <= $end ) { $this->output( "...doing $idCol from $blockStart to $blockEnd\n" ); $cond = "$idCol BETWEEN $blockStart AND $blockEnd - AND $idCol IS NOT NULL AND {$prefix}_sha1 IS NOT NULL"; + AND $idCol IS NOT NULL AND {$prefix}_sha1 != ''"; $res = $db->select( $table, '*', $cond, __METHOD__ ); $db->begin(); -- 2.20.1