Skip to content

Commit

Permalink
Platform: Correct detecting MSSQL Support
Browse files Browse the repository at this point in the history
PDO Implementation of zf1 builds on module mssql OR pdo_dblib, while dblib is preferred.

Newer implementations would support pdo_sqlsrv, but that is not available with ZF1.
  • Loading branch information
lazyfrosch committed Mar 27, 2018
1 parent c0e8b33 commit 123a0b8
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 123a0b8

Please sign in to comment.