diff options
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/db.php b/lib/db.php index 8f6f50bda6e..61836551833 100644 --- a/lib/db.php +++ b/lib/db.php @@ -273,18 +273,13 @@ class OC_DB { break; case 'oci': $dsn = array( - 'phptype' => 'oci8', - 'username' => $user, - 'password' => $pass, - 'charset' => 'AL32UTF8', + '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( |