From 771efae1a256d0ed451e772ba5748fe11ec772af Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 7 Sep 2015 16:20:37 +0200 Subject: [PATCH] lib/db: Allow to configure mssql resources refs #9683 --- library/Icinga/Data/Db/DbConnection.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Data/Db/DbConnection.php b/library/Icinga/Data/Db/DbConnection.php index a5548209c..e62e24464 100644 --- a/library/Icinga/Data/Db/DbConnection.php +++ b/library/Icinga/Data/Db/DbConnection.php @@ -136,6 +136,10 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible, Insp ); $this->dbType = strtolower($this->config->get('db', 'mysql')); switch ($this->dbType) { + case 'mssql': + $adapter = 'Pdo_Mssql'; + $adapterParamaters['pdoType'] = $this->config->get('pdoType', 'dblib'); + break; case 'mysql': $adapter = 'Pdo_Mysql'; /*