Index: trunk/phase3/maintenance/storage/storageTypeStats.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | } |
15 | 15 | |
16 | 16 | $rangeStart = 0; |
17 | | - $binSize = pow( 10, floor( log10( $endId ) ) - 3 ); |
| 17 | + $binSize = intval( pow( 10, floor( log10( $endId ) ) - 3 ) ); |
18 | 18 | if ( $binSize < 100 ) { |
19 | 19 | $binSize = 100; |
20 | 20 | } |
— | — | @@ -52,8 +52,8 @@ |
53 | 53 | 'COUNT(*) as count', |
54 | 54 | ), |
55 | 55 | array( |
56 | | - 'old_id >= ' . $dbr->addQuotes( $rangeStart ), |
57 | | - 'old_id < ' . $dbr->addQuotes( $rangeStart + $binSize ) |
| 56 | + 'old_id >= ' . intval( $rangeStart ), |
| 57 | + 'old_id < ' . intval( $rangeStart + $binSize ) |
58 | 58 | ), |
59 | 59 | __METHOD__, |
60 | 60 | array( 'GROUP BY' => 'old_flags, class' ) |