r46043 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46042‎ | r46043 | r46044 >
Date:23:38, 22 January 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Fixed query to support table prefixes.
Modified paths:
  • /trunk/extensions/DataCenter/DataCenter.db.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataCenter/DataCenter.db.php
@@ -514,6 +514,7 @@
515515 $tableName = self::getTableName( $category, $type );
516516 $columnName = self::getColumnName( $category, $type, $field );
517517 $dbr = wfGetDB( DB_SLAVE );
 518+ $tableName = $dbr->tablePrefix() . $tableName;
518519 $res = $dbr->query(
519520 "SHOW COLUMNS FROM {$tableName} LIKE '{$columnName}'",
520521 __METHOD__

Status & tagging log