Commit b0fbe890 authored by Benjamin Eberlei's avatar Benjamin Eberlei

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

parent 92c0fbf2
......@@ -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