dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e588ae
)
Per bug 26612, set datestyle and timezone in open() rather than relying on $wgDBuser...
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 23 Feb 2011 13:51:00 +0000
(13:51 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 23 Feb 2011 13:51:00 +0000
(13:51 +0000)
includes/db/DatabasePostgres.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabasePostgres.php
b/includes/db/DatabasePostgres.php
index
01f41ee
..
487fabe
100644
(file)
--- a/
includes/db/DatabasePostgres.php
+++ b/
includes/db/DatabasePostgres.php
@@
-198,7
+198,9
@@
class DatabasePostgres extends DatabaseBase {
$this->doQuery( "SET client_min_messages = 'ERROR'" );
}
- $this->doQuery( "SET client_encoding='UTF8'" );
+ $this->query( "SET client_encoding='UTF8'", __METHOD__ );
+ $this->query( "SET datestyle = 'ISO, YMD'", __METHOD__ );
+ $this->query( "SET timezone = 'GMT'", __METHOD__ );
global $wgDBmwschema;
if ( isset( $wgDBmwschema )