Commit 63200374 authored by Benjamin Eberlei's avatar Benjamin Eberlei

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

parent 0bbb36ec
......@@ -53,9 +53,13 @@ class Driver implements \Doctrine\DBAL\Driver
$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;
}
......
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