map oracle driver options to params (#23938)

This commit is contained in:
Jörn Friedrich Dreyer 2016-06-10 14:07:31 +02:00 committed by Thomas Müller
parent a0d8702a1c
commit c668588e17
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ class ConnectionFactory {
break;
case 'oci':
$eventManager->addEventSubscriber(new OracleSessionInit);
// the driverOptions are unused in dbal and need to be mapped to the parameters
if (isset($additionalConnectionParams['driverOptions'])) {
$additionalConnectionParams = array_merge($additionalConnectionParams, $additionalConnectionParams['driverOptions']);
}
break;
case 'sqlite3':
$journalMode = $additionalConnectionParams['sqlite.journal_mode'];