Commit 461d9afb authored by Douglas Teoh's avatar Douglas Teoh

Fix bug where empty or null host connection parameter will still construct an...

Fix bug where empty or null host connection parameter will still construct an Oracle DSN instead of using dbname.
parent d9638d6d
......@@ -50,7 +50,7 @@ class Driver implements \Doctrine\DBAL\Driver
protected function _constructDsn(array $params)
{
$dsn = '';
if (isset($params['host'])) {
if (isset($params['host']) && $params['host'] != '') {
$dsn .= '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)' .
'(HOST=' . $params['host'] . ')';
......
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