From 4a50d5560051a8862eff41c2a3d0225fbc24c7c1 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 1 Sep 2010 19:09:27 +0000 Subject: [PATCH] Add getConnection() for Oracle --- includes/installer/OracleInstaller.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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() { -- 2.20.1