Commit b170b3b4 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DBAL-17 - Fix notice when relying on enviroment variable to determine Oracle Database

parent c9041d60
......@@ -58,7 +58,11 @@ class Driver implements \Doctrine\DBAL\Driver
$dsn .= '(PORT=1521)';
}
$dsn .= '))(CONNECT_DATA=(SID=' . $params['dbname'] . ')))';
$dsn .= '))';
if (isset($params['dbname'])) {
$dsn .= '(CONNECT_DATA=(SID=' . $params['dbname'] . ')';
}
$dsn .= '))';
} else {
$dsn .= $params['dbname'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment