summaryrefslogtreecommitdiffstats
path: root/lib/private/db
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-10-27 12:30:29 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-10-27 12:30:29 +0100
commite16a58220d1e82beb29ab6fe6102710dcc2ad27a (patch)
tree09b96bd669ad7e85564ac5f45b5c82af674b8102 /lib/private/db
parentaee1edf6b5d12852b04e734486a42a5b042dfc65 (diff)
downloadnextcloud-server-e16a58220d1e82beb29ab6fe6102710dcc2ad27a.tar.gz
nextcloud-server-e16a58220d1e82beb29ab6fe6102710dcc2ad27a.zip
allow passing driver options, fixes #11718
Diffstat (limited to 'lib/private/db')
-rw-r--r--lib/private/db/connectionfactory.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/db/connectionfactory.php b/lib/private/db/connectionfactory.php
index 1f676f1fca2..f6253e09b95 100644
--- a/lib/private/db/connectionfactory.php
+++ b/lib/private/db/connectionfactory.php
@@ -153,6 +153,13 @@ class ConnectionFactory {
}
$connectionParams['tablePrefix'] = $config->getSystemValue('dbtableprefix', 'oc_');
+
+ //additional driver options, eg. for mysql ssl
+ $driverOptions = $config->getSystemValue('dbdriveroptions', null);
+ if ($driverOptions) {
+ $connectionParams['driverOptions'] = $driverOptions;
+ }
+
return $connectionParams;
}
}