]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow passing driver options, fixes #11718
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 27 Oct 2014 11:30:29 +0000 (12:30 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 27 Oct 2014 11:30:29 +0000 (12:30 +0100)
lib/private/db/connectionfactory.php

index 1f676f1fca20b58ce12a4ea684f4c8d334e24d8f..f6253e09b951290ae4e2f2659ac656ca770394b2 100644 (file)
@@ -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;
        }
 }