allow passing driver options, fixes #11718

This commit is contained in:
Jörn Friedrich Dreyer 2014-10-27 12:30:29 +01:00
parent aee1edf6b5
commit e16a58220d
1 changed files with 7 additions and 0 deletions

View 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;
}
}