From: Tim Starling Date: Fri, 12 Feb 2010 05:17:12 +0000 (+0000) Subject: Don't format old_id ranges in scientific (%E) notation. X-Git-Tag: 1.31.0-rc.0~37804 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=5b892d68c0ad140c151b1fd901ddd7eb798d94b2;p=lhc%2Fweb%2Fwiklou.git Don't format old_id ranges in scientific (%E) notation. --- diff --git a/maintenance/storage/storageTypeStats.php b/maintenance/storage/storageTypeStats.php index 190bb69628..9db35e974e 100644 --- a/maintenance/storage/storageTypeStats.php +++ b/maintenance/storage/storageTypeStats.php @@ -13,7 +13,7 @@ class StorageTypeStats extends Maintenance { } $rangeStart = 0; - $binSize = pow( 10, floor( log10( $endId ) ) - 3 ); + $binSize = intval( pow( 10, floor( log10( $endId ) ) - 3 ) ); if ( $binSize < 100 ) { $binSize = 100; } @@ -52,8 +52,8 @@ SQL; 'COUNT(*) as count', ), array( - 'old_id >= ' . $dbr->addQuotes( $rangeStart ), - 'old_id < ' . $dbr->addQuotes( $rangeStart + $binSize ) + 'old_id >= ' . intval( $rangeStart ), + 'old_id < ' . intval( $rangeStart + $binSize ) ), __METHOD__, array( 'GROUP BY' => 'old_flags, class' )