Commit 1d8e9081 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-137'

parents 6a650987 e138d5d5
......@@ -56,7 +56,7 @@ class Driver implements \Doctrine\DBAL\Driver
private function _constructPdoDsn(array $params)
{
$dsn = 'mysql:';
if (isset($params['host'])) {
if (isset($params['host']) && $params['host'] != '') {
$dsn .= 'host=' . $params['host'] . ';';
}
if (isset($params['port'])) {
......
......@@ -34,7 +34,7 @@ class Driver implements \Doctrine\DBAL\Driver
private function _constructPdoDsn(array $params)
{
$dsn = 'pgsql:';
if (isset($params['host'])) {
if (isset($params['host']) && $params['host'] != '') {
$dsn .= 'host=' . $params['host'] . ' ';
}
if (isset($params['port'])) {
......
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