diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-27 12:30:29 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-27 12:30:29 +0100 |
commit | e16a58220d1e82beb29ab6fe6102710dcc2ad27a (patch) | |
tree | 09b96bd669ad7e85564ac5f45b5c82af674b8102 | |
parent | aee1edf6b5d12852b04e734486a42a5b042dfc65 (diff) | |
download | nextcloud-server-e16a58220d1e82beb29ab6fe6102710dcc2ad27a.tar.gz nextcloud-server-e16a58220d1e82beb29ab6fe6102710dcc2ad27a.zip |
allow passing driver options, fixes #11718
-rw-r--r-- | lib/private/db/connectionfactory.php | 7 |
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; } } |