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:
91f1c4c
)
Force new connection to database, fixes bug 20475, might have unforseen consequences
author
OverlordQ
<overlordq@users.mediawiki.org>
Fri, 5 Feb 2010 05:40:50 +0000
(
05:40
+0000)
committer
OverlordQ
<overlordq@users.mediawiki.org>
Fri, 5 Feb 2010 05:40:50 +0000
(
05:40
+0000)
includes/db/DatabasePostgres.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabasePostgres.php
b/includes/db/DatabasePostgres.php
index
9a834ba
..
e76e70a
100644
(file)
--- a/
includes/db/DatabasePostgres.php
+++ b/
includes/db/DatabasePostgres.php
@@
-136,8
+136,8
@@
class DatabasePostgres extends DatabaseBase {
global $wgDBport;
- if (!strlen($user)) { ## e.g. the class is being loaded
- return;
+ if (!strlen($user)) { ## e.g. the class is being loaded
+ return;
}
$this->close();
$this->mServer = $server;
@@
-156,7
+156,7
@@
class DatabasePostgres extends DatabaseBase {
if ($port!=false && $port!="") {
$connectVars['port'] = $port;
}
- $connectString = $this->makeConnectionString( $connectVars );
+ $connectString = $this->makeConnectionString( $connectVars
, PGSQL_CONNECT_FORCE_NEW
);
$this->installErrorHandler();
$this->mConn = pg_connect( $connectString );