Commit fd128976 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1560 from DServy/master

Added a more dynamic method for checking dblib (response to ticket #770)
parents d5d6d285 4cea38e0
......@@ -30,7 +30,7 @@ class SQLServer extends Connector {
$port = (isset($port)) ? ','.$port : '';
//check for dblib for mac users connecting to mssql (utilizes freetds)
if (!empty($dsn_type) and $dsn_type == 'dblib')
if (in_array('dblib',PDO::getAvailableDrivers()))
{
$dsn = "dblib:host={$host}{$port};dbname={$database}";
}
......
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