Add support for changing the default schema when connecting to Oracle. #1278

Merged
merged 1 commit into from Jun 11, 2012
View
5 libraries/joomla/database/driver/oracle.php
@@ -102,6 +102,11 @@ public function connect()
parent::connect();
+ if (isset($this->options['schema']))
+ {
+ $this->setQuery('ALTER SESSION SET CURRENT_SCHEMA = ' . $this->quoteName($this->options['schema']))->execute();
+ }
+
$this->setDateFormat($this->dateformat);
}