Index: branches/wmf-deployment/maintenance/storage/fixBug20757.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | |
33 | 33 | $totalRevs = $dbr->selectField( 'text', 'MAX(old_id)', false, __METHOD__ ); |
34 | 34 | |
35 | | - if ( $dbr->getType() == 'mysql' |
| 35 | + if ( $dbr instanceof DatabaseMysql |
36 | 36 | && version_compare( $dbr->getServerVersion(), '4.1.0', '>=' ) ) |
37 | 37 | { |
38 | 38 | // In MySQL 4.1+, the binary field old_text has a non-working LOWER() function |