summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/db.php b/lib/db.php
index 8f6f50bda6e..5b45f81f998 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -276,15 +276,10 @@ class OC_DB {
'phptype' => 'oci8',
'username' => $user,
'password' => $pass,
+ 'service' => $name,
+ 'hostspec' => $host,
'charset' => 'AL32UTF8',
);
- if ($host != '') {
- $dsn['hostspec'] = $host;
- $dsn['database'] = $name;
- } else { // use dbname for hostspec
- $dsn['hostspec'] = $name;
- $dsn['database'] = $user;
- }
break;
case 'mssql':
$dsn = array(