Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-10-27 14:30:29 +0300
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-11-03 16:22:27 +0300
commit70e68280b86c933a946be636e722886bc2bfcc9a (patch)
treea06d61a670a639fd7d03b4d43693e222be25c0c4 /lib/private/db.php
parent840f5487aa0354db640deb67e64d97853b194e98 (diff)
allow passing driver options, fixes #11718
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 221a369cad2..93d8973d8c0 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -89,6 +89,12 @@ class OC_DB {
$connectionParams['tablePrefix'] = OC_Config::getValue('dbtableprefix', 'oc_');
+ //additional driver options, eg. for mysql ssl
+ $driverOptions = OC_Config::getValue('dbdriveroptions', null);
+ if ($driverOptions) {
+ $connectionParams['driverOptions'] = $driverOptions;
+ }
+
try {
self::$connection = $factory->getConnection($type, $connectionParams);
} catch(\Doctrine\DBAL\DBALException $e) {