r82668 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82667‎ | r82668 | r82669 >
Date:13:51, 23 February 2011
Author:demon
Status:deferred
Tags:
Comment:
Per bug 26612, set datestyle and timezone in open() rather than relying on $wgDBuser having specific settings.
Modified paths:
  • /trunk/phase3/includes/db/DatabasePostgres.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabasePostgres.php
@@ -198,7 +198,9 @@
199199 $this->doQuery( "SET client_min_messages = 'ERROR'" );
200200 }
201201
202 - $this->doQuery( "SET client_encoding='UTF8'" );
 202+ $this->query( "SET client_encoding='UTF8'", __METHOD__ );
 203+ $this->query( "SET datestyle = 'ISO, YMD'", __METHOD__ );
 204+ $this->query( "SET timezone = 'GMT'", __METHOD__ );
203205
204206 global $wgDBmwschema;
205207 if ( isset( $wgDBmwschema )

Follow-up revisions

RevisionCommit summaryAuthorDate
r82674Various Postgres fixes (bug 26612 stuff)...demon16:01, 23 February 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81132Per comment on bug 26612, we should drop the pre-Postgres 8.3 support with th...demon14:12, 28 January 2011

Status & tagging log