Commit 7a70a4d9 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-238' into 2.1.x

parents 92c0fbf2 b0fbe890
......@@ -54,11 +54,15 @@ class Driver implements \Doctrine\DBAL\Driver
if (isset($params['port']) && !empty($params['port'])) {
$dsn .= ',' . $params['port'];
}
if (isset($params['dbname'])) {
$dsn .= ';Database=' . $params['dbname'];
}
if (isset($params['dbname'])) {;
$dsn .= ';Database=' . $params['dbname'];
}
if (isset($params['MultipleActiveResultSets'])) {
$dsn .= '; MultipleActiveResultSets=' . ($params['MultipleActiveResultSets'] ? 'true' : 'false');
}
return $dsn;
}
......@@ -83,4 +87,4 @@ class Driver implements \Doctrine\DBAL\Driver
$params = $conn->getParams();
return $params['dbname'];
}
}
\ No newline at end of file
}
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