From: Chad Horohoe Date: Wed, 1 Sep 2010 19:09:27 +0000 (+0000) Subject: Add getConnection() for Oracle X-Git-Tag: 1.31.0-rc.0~35236 X-Git-Url: http://git.cyclocoop.org/wiki/%7B%7Bpath%7D%7Dmw-config/index.php?a=commitdiff_plain;h=4a50d5560051a8862eff41c2a3d0225fbc24c7c1;p=lhc%2Fweb%2Fwiklou.git Add getConnection() for Oracle --- diff --git a/includes/installer/OracleInstaller.php b/includes/installer/OracleInstaller.php index 0280836ac0..84d89f56e9 100644 --- a/includes/installer/OracleInstaller.php +++ b/includes/installer/OracleInstaller.php @@ -89,7 +89,22 @@ class OracleInstaller extends DatabaseInstaller { } 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() {