diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-09-01 12:35:20 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-09-19 18:13:39 +0200 |
commit | 55efe1e56ced021ae99d7af6d6331882fd8244ba (patch) | |
tree | 3a5cff9ee9ac7c180c8757c70d71c739d509ea3c /lib/db.php | |
parent | f6284bdce735651a572474d97930239bd2315d52 (diff) | |
download | nextcloud-server-55efe1e56ced021ae99d7af6d6331882fd8244ba.tar.gz nextcloud-server-55efe1e56ced021ae99d7af6d6331882fd8244ba.zip |
Fix insert/update/delete helper functions for oracle
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php index b9505b88d82..1e5d12649df 100644 --- a/lib/db.php +++ b/lib/db.php @@ -87,6 +87,7 @@ class OC_DB { 'driver' => 'pdo_sqlite', ); $connectionParams['adapter'] = '\OC\DB\AdapterSqlite'; + $connectionParams['wrapperClass'] = 'OC\DB\Connection'; break; case 'mysql': $connectionParams = array( @@ -99,6 +100,7 @@ class OC_DB { 'driver' => 'pdo_mysql', ); $connectionParams['adapter'] = '\OC\DB\Adapter'; + $connectionParams['wrapperClass'] = 'OC\DB\Connection'; break; case 'pgsql': $connectionParams = array( @@ -110,6 +112,7 @@ class OC_DB { 'driver' => 'pdo_pgsql', ); $connectionParams['adapter'] = '\OC\DB\AdapterPgSql'; + $connectionParams['wrapperClass'] = 'OC\DB\Connection'; break; case 'oci': $connectionParams = array( @@ -124,6 +127,7 @@ class OC_DB { $connectionParams['port'] = $port; } $connectionParams['adapter'] = '\OC\DB\AdapterOCI8'; + $connectionParams['wrapperClass'] = 'OC\DB\OracleConnection'; $eventManager->addEventSubscriber(new \Doctrine\DBAL\Event\Listeners\OracleSessionInit); break; case 'mssql': @@ -137,11 +141,11 @@ class OC_DB { 'driver' => 'pdo_sqlsrv', ); $connectionParams['adapter'] = '\OC\DB\AdapterSQLSrv'; + $connectionParams['wrapperClass'] = 'OC\DB\Connection'; break; default: return false; } - $connectionParams['wrapperClass'] = 'OC\DB\Connection'; $connectionParams['tablePrefix'] = OC_Config::getValue('dbtableprefix', 'oc_' ); try { self::$connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config, $eventManager); |