diff --git a/library/Icinga/Data/Db/DbConnection.php b/library/Icinga/Data/Db/DbConnection.php index 0c5b44597..15a249f60 100644 --- a/library/Icinga/Data/Db/DbConnection.php +++ b/library/Icinga/Data/Db/DbConnection.php @@ -139,14 +139,7 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible, Insp switch ($this->dbType) { case 'mssql': $adapter = 'Pdo_Mssql'; - $pdoType = $this->config->get('pdoType', 'dblib'); - if ($pdoType === 'dblib') { - // Driver does not support setting attributes - unset($adapterParamaters['persistent']); - unset($adapterParamaters['options']); - unset($adapterParamaters['driver_options']); - } - $adapterParamaters['pdoType'] = $pdoType; + $adapterParamaters['pdoType'] = $this->config->get('pdoType', 'dblib'); $defaultPort = 1433; break; case 'mysql':