Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -136,8 +136,8 @@ |
137 | 137 | |
138 | 138 | global $wgDBport; |
139 | 139 | |
140 | | - if (!strlen($user)) { ## e.g. the class is being loaded |
141 | | - return; |
| 140 | + if (!strlen($user)) { ## e.g. the class is being loaded |
| 141 | + return; |
142 | 142 | } |
143 | 143 | $this->close(); |
144 | 144 | $this->mServer = $server; |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | if ($port!=false && $port!="") { |
158 | 158 | $connectVars['port'] = $port; |
159 | 159 | } |
160 | | - $connectString = $this->makeConnectionString( $connectVars ); |
| 160 | + $connectString = $this->makeConnectionString( $connectVars, PGSQL_CONNECT_FORCE_NEW ); |
161 | 161 | |
162 | 162 | $this->installErrorHandler(); |
163 | 163 | $this->mConn = pg_connect( $connectString ); |