diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-10-27 14:30:29 +0300 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-11-03 16:22:27 +0300 |
commit | 70e68280b86c933a946be636e722886bc2bfcc9a (patch) | |
tree | a06d61a670a639fd7d03b4d43693e222be25c0c4 /lib/private/db.php | |
parent | 840f5487aa0354db640deb67e64d97853b194e98 (diff) |
allow passing driver options, fixes #11718
Diffstat (limited to 'lib/private/db.php')
-rw-r--r-- | lib/private/db.php | 6 |
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) { |