http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72154
Revision: 72154
Author: demon
Date: 2010-09-01 19:09:27 +0000 (Wed, 01 Sep 2010)
Log Message:
-----------
Add getConnection() for Oracle
Modified Paths:
--------------
trunk/phase3/includes/installer/OracleInstaller.php
Modified: trunk/phase3/includes/installer/OracleInstaller.php
===================================================================
--- trunk/phase3/includes/installer/OracleInstaller.php 2010-09-01 19:07:15 UTC
(rev 72153)
+++ trunk/phase3/includes/installer/OracleInstaller.php 2010-09-01 19:09:27 UTC
(rev 72154)
@@ -89,7 +89,22 @@
}
public function getConnection() {
- // TODO
+ $status = Status::newGood();
+ try {
+ $this->db = new DatabaseOracle(
+ $this->getVar( 'wgDBserver' ),
+ $this->getVar( '_InstallUser' ),
+ $this->getVar( '_InstallPassword' ),
+ false,
+ false,
+ 0,
+ $this->getVar( 'wgDBprefix' )
+ );
+ $status->value = $this->db;
+ } catch ( DBConnectionError $e ) {
+ $status->fatal( 'config-connection-error',
$e->getMessage() );
+ }
+ return $status;
}
public function setupDatabase() {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs