lib/db: Allow to configure mssql resources

refs #9683
This commit is contained in:
Eric Lippmann 2015-09-07 16:20:37 +02:00
parent 4763b6b20a
commit 771efae1a2

View File

@ -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';
/*