Commit 57bc95d0 authored by stakovicz's avatar stakovicz

Allow empty host to PDOOracle

parent 0f3f8769
...@@ -43,7 +43,7 @@ class Driver implements \Doctrine\DBAL\Driver ...@@ -43,7 +43,7 @@ class Driver implements \Doctrine\DBAL\Driver
private function _constructPdoDsn(array $params) private function _constructPdoDsn(array $params)
{ {
$dsn = 'oci:'; $dsn = 'oci:';
if (isset($params['host'])) { if (isset($params['host']) && $params['host'] != '') {
$dsn .= 'dbname=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)' . $dsn .= 'dbname=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)' .
'(HOST=' . $params['host'] . ')'; '(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