@@ 166-184 (lines=19) @@ | ||
163 | return $status; |
|
164 | } |
|
165 | ||
166 | public function openConnection() { |
|
167 | $status = Status::newGood(); |
|
168 | try { |
|
169 | $db = new DatabaseOracle( |
|
170 | $this->getVar( 'wgDBserver' ), |
|
171 | $this->getVar( '_InstallUser' ), |
|
172 | $this->getVar( '_InstallPassword' ), |
|
173 | $this->getVar( '_InstallDBname' ), |
|
174 | 0, |
|
175 | $this->getVar( 'wgDBprefix' ) |
|
176 | ); |
|
177 | $status->value = $db; |
|
178 | } catch ( DBConnectionError $e ) { |
|
179 | $this->connError = $e->db->lastErrno(); |
|
180 | $status->fatal( 'config-connection-error', $e->getMessage() ); |
|
181 | } |
|
182 | ||
183 | return $status; |
|
184 | } |
|
185 | ||
186 | public function openSYSDBAConnection() { |
|
187 | $status = Status::newGood(); |
|
@@ 186-204 (lines=19) @@ | ||
183 | return $status; |
|
184 | } |
|
185 | ||
186 | public function openSYSDBAConnection() { |
|
187 | $status = Status::newGood(); |
|
188 | try { |
|
189 | $db = new DatabaseOracle( |
|
190 | $this->getVar( 'wgDBserver' ), |
|
191 | $this->getVar( '_InstallUser' ), |
|
192 | $this->getVar( '_InstallPassword' ), |
|
193 | $this->getVar( '_InstallDBname' ), |
|
194 | DBO_SYSDBA, |
|
195 | $this->getVar( 'wgDBprefix' ) |
|
196 | ); |
|
197 | $status->value = $db; |
|
198 | } catch ( DBConnectionError $e ) { |
|
199 | $this->connError = $e->db->lastErrno(); |
|
200 | $status->fatal( 'config-connection-error', $e->getMessage() ); |
|
201 | } |
|
202 | ||
203 | return $status; |
|
204 | } |
|
205 | ||
206 | public function needsUpgrade() { |
|
207 | $tempDBname = $this->getVar( 'wgDBname' ); |