Fix for r94289: we want to skip rows with non-empty sha1, not non-NULL (which is...
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 12 Aug 2011 16:50:03 +0000 (16:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 12 Aug 2011 16:50:03 +0000 (16:50 +0000)
maintenance/populateRevisionSha1.php

index 3e490d1..266b65a 100644 (file)
@@ -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();