dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "[WikiImporter::notice] use wfDebug instead of echo in notice()"
[lhc/web/wiklou.git]
/
maintenance
/
populateRevisionSha1.php
diff --git
a/maintenance/populateRevisionSha1.php
b/maintenance/populateRevisionSha1.php
index
f3506ec
..
7ced779
100644
(file)
--- a/
maintenance/populateRevisionSha1.php
+++ b/
maintenance/populateRevisionSha1.php
@@
-93,8
+93,8
@@
class PopulateRevisionSha1 extends LoggedUpdateMaintenance {
$blockEnd = $start + $batchSize - 1;
while ( $blockEnd <= $end ) {
$this->output( "...doing $idCol from $blockStart to $blockEnd\n" );
$blockEnd = $start + $batchSize - 1;
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 = ''";
+ $cond = "$idCol BETWEEN
" . (int)$blockStart . " AND " . (int)$blockEnd .
+
"
AND $idCol IS NOT NULL AND {$prefix}_sha1 = ''";
$res = $db->select(
$queryInfo['tables'], $queryInfo['fields'], $cond, __METHOD__, [], $queryInfo['joins']
);
$res = $db->select(
$queryInfo['tables'], $queryInfo['fields'], $cond, __METHOD__, [], $queryInfo['joins']
);