r95881 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95880‎ | r95881 | r95882 >
Date:16:18, 31 August 2011
Author:reedy
Status:ok
Tags:
Comment:
Pass on the DB flags so we get some debugging
Modified paths:
  • /trunk/extensions/MetricsReporting/ApiAnalyticsBase.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetricsReporting/ApiAnalyticsBase.php
@@ -20,7 +20,8 @@
2121 protected function getDB() {
2222 if ( is_null( $this->mDb ) ) {
2323 global $wgMetricsDBserver, $wgMetricsDBname, $wgMetricsDBuser,
24 - $wgMetricsDBpassword, $wgMetricsDBtype, $wgMetricsDBprefix;
 24+ $wgMetricsDBpassword, $wgMetricsDBtype, $wgMetricsDBprefix,
 25+ $wgDebugDumpSql;
2526 $this->mDb = DatabaseBase::factory( $wgMetricsDBtype,
2627 array(
2728 'host' => $wgMetricsDBserver,
@@ -28,6 +29,7 @@
2930 'password' => $wgMetricsDBpassword,
3031 'dbname' => $wgMetricsDBname,
3132 'tablePrefix' => $wgMetricsDBprefix,
 33+ 'flags' => ( $wgDebugDumpSql ? DBO_DEBUG : 0 ) | DBO_DEFAULT
3234 )
3335 );
3436 //$this->mDb->query( "SET names utf8" );

Status & tagging log