r62983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62982‎ | r62983 | r62984 >
Date:23:15, 25 February 2010
Author:tstarling
Status:ok
Tags:
Comment:
Local fix for missing Database::getType()
Modified paths:
  • /branches/wmf-deployment/maintenance/storage/fixBug20757.php (modified) (history)

Diff [purge]

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

Status & tagging log