Skip to content

Commit

Permalink
Merge pull request #3400 from Icinga/bugfix/mssql-detection
Browse files Browse the repository at this point in the history
Platform: Also consider dblib when checking for MSSQL support
  • Loading branch information
nilmerg authored Apr 24, 2018
2 parents dce8bc2 + 123a0b8 commit c566c8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Icinga/Application/Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ public static function hasDatabaseSupport()
*/
public static function hasMssqlSupport()
{
return static::extensionLoaded('mssql') && static::classExists('Zend_Db_Adapter_Pdo_Mssql');
return (static::extensionLoaded('mssql') || static::extensionLoaded('pdo_dblib'))
&& static::classExists('Zend_Db_Adapter_Pdo_Mssql');
}

/**
Expand Down

0 comments on commit c566c8b

Please sign in to comment.