diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-03-10 11:40:08 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-03-10 11:40:08 +0100 |
commit | 34e4e490b863f0628868fd50eed98573f1673f6f (patch) | |
tree | 34925e088f51a02128e41da68c8b69f46b9ec8b8 | |
parent | 7af774cc9817bccc9f8244c61f1dae1ac36e0869 (diff) | |
download | nextcloud-server-34e4e490b863f0628868fd50eed98573f1673f6f.tar.gz nextcloud-server-34e4e490b863f0628868fd50eed98573f1673f6f.zip |
Fix mssql connection parameters and correct driver for pgsql
-rw-r--r-- | lib/db.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/db.php b/lib/db.php index 4a511908e5a..4a956674d12 100644 --- a/lib/db.php +++ b/lib/db.php @@ -147,7 +147,7 @@ class OC_DB { 'host' => $host, 'port' => $port, 'dbname' => $name, - 'driver' => 'pdo_mysql', + 'driver' => 'pdo_pgsql', ); break; case 'oci': @@ -162,13 +162,14 @@ class OC_DB { ); break; case 'mssql': - $dsn = array( - 'phptype' => 'sqlsrv', - 'username' => $user, - 'password' => $pass, - 'hostspec' => $host, - 'database' => $name - ); + $connectionParams = array( + 'user' => $user, + 'password' => $pass, + 'host' => $host, + 'port' => $port, + 'dbname' => $name, + 'driver' => 'pdo_sqlsrv', + ); break; default: return false; |