Skip to content

Commit

Permalink
Added TransactionIsolation DSN key for SQL Server (#21069)
Browse files Browse the repository at this point in the history
  • Loading branch information
khorpy authored and taylorotwell committed Sep 7, 2017
1 parent d4169a5 commit d00031f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Database/Connectors/SqlServerConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ protected function getSqlSrvDsn(array $config)
$arguments['MultipleActiveResultSets'] = 'false';
}

if (isset($config['transaction_isolation'])) {
$arguments['TransactionIsolation'] = $config['transaction_isolation'];
}

return $this->buildConnectString('sqlsrv', $arguments);
}

Expand Down

0 comments on commit d00031f

Please sign in to comment.