Platform: Correct detecting MSSQL Support
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.
This commit is contained in:
parent
c0e8b33b33
commit
123a0b8196
|
@ -351,7 +351,8 @@ class Platform
|
|||
*/
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue