Commit b0fbe890 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-238] Allow to configure MultipleActiveResultSets with PDO SQLSRV

parent 92c0fbf2
......@@ -55,10 +55,14 @@ class Driver implements \Doctrine\DBAL\Driver
$dsn .= ',' . $params['port'];
}
if (isset($params['dbname'])) {
if (isset($params['dbname'])) {;
$dsn .= ';Database=' . $params['dbname'];
}
if (isset($params['MultipleActiveResultSets'])) {
$dsn .= '; MultipleActiveResultSets=' . ($params['MultipleActiveResultSets'] ? 'true' : 'false');
}
return $dsn;
}
......
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