Commit b89d65c3 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #41 from stakovicz/patch-1

Allow empty host to PDOOracle
parents d24b21fd 57bc95d0
......@@ -49,7 +49,7 @@ class Driver implements \Doctrine\DBAL\Driver
private function _constructPdoDsn(array $params)
{
$dsn = 'oci:';
if (isset($params['host'])) {
if (isset($params['host']) && $params['host'] != '') {
$dsn .= 'dbname=(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