diff --git a/library/Zend/Db/Adapter/Platform/SqlServer.php b/library/Zend/Db/Adapter/Platform/SqlServer.php index 56e9cc54ff8..2d24234918a 100755 --- a/library/Zend/Db/Adapter/Platform/SqlServer.php +++ b/library/Zend/Db/Adapter/Platform/SqlServer.php @@ -34,8 +34,8 @@ public function __construct($driver = null) public function setDriver($driver) { // handle Zend_Db drivers - if (($driver instanceof Pdo\Pdo && $driver->getDatabasePlatformName() == 'Sqlsrv') - || (($driver instanceof \PDO && $driver->getAttribute(\PDO::ATTR_DRIVER_NAME) == 'sqlsrv')) + if (($driver instanceof Pdo\Pdo && in_array($driver->getDatabasePlatformName(), array('Sqlsrv', 'Dblib'))) + || (($driver instanceof \PDO && in_array($driver->getAttribute(\PDO::ATTR_DRIVER_NAME), array('sqlsrv', 'dblib')))) ) { $this->resource = $driver; return $this;