Permalink
Browse files

Merge branch 'DBAL-238' into 2.2

  • Loading branch information...
2 parents 0bbb36e + 6320037 commit 0b0736fc8f071014dcaa54b6cf3439b4201e3863 @beberlei beberlei committed Mar 19, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/Doctrine/DBAL/Driver/PDOSqlsrv/Driver.php
@@ -53,9 +53,13 @@ private function _constructPdoDsn(array $params)
$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;
}

0 comments on commit 0b0736f

Please sign in to comment.