summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-03-10 11:40:08 +0100
committerBart Visscher <bartv@thisnet.nl>2013-03-10 11:40:08 +0100
commit34e4e490b863f0628868fd50eed98573f1673f6f (patch)
tree34925e088f51a02128e41da68c8b69f46b9ec8b8
parent7af774cc9817bccc9f8244c61f1dae1ac36e0869 (diff)
downloadnextcloud-server-34e4e490b863f0628868fd50eed98573f1673f6f.tar.gz
nextcloud-server-34e4e490b863f0628868fd50eed98573f1673f6f.zip
Fix mssql connection parameters and correct driver for pgsql
-rw-r--r--lib/db.php17
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;