Skip to content

Commit

Permalink
Add support for MultiSubnetFailover DSN parameter (#22022)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthanley authored and taylorotwell committed Nov 9, 2017
1 parent 0b43f0b commit b2417e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Connectors/SqlServerConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ protected function getSqlSrvDsn(array $config)
$arguments['TransactionIsolation'] = $config['transaction_isolation'];
}

if (isset($config['multi_subnet_failover'])) {
$arguments['MultiSubnetFailover'] = $config['multi_subnet_failover'];
}

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

Expand Down

0 comments on commit b2417e8

Please sign in to comment.