mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
e34c50bc91
commit
a42c8d1f24
@ -150,19 +150,18 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible, Insp
|
|||||||
. 'NO_AUTO_CREATE_USER,ANSI_QUOTES,PIPES_AS_CONCAT,NO_ENGINE_SUBSTITUTION\';';
|
. 'NO_AUTO_CREATE_USER,ANSI_QUOTES,PIPES_AS_CONCAT,NO_ENGINE_SUBSTITUTION\';';
|
||||||
$adapterParamaters['port'] = $this->config->get('port', 3306);
|
$adapterParamaters['port'] = $this->config->get('port', 3306);
|
||||||
break;
|
break;
|
||||||
|
case 'oci':
|
||||||
|
$adapter = 'Oracle';
|
||||||
|
unset($adapterParamaters['options']);
|
||||||
|
unset($adapterParamaters['driver_options']);
|
||||||
|
$adapterParamaters['driver_options'] = array(
|
||||||
|
'lob_as_string' => true
|
||||||
|
);
|
||||||
|
break;
|
||||||
case 'pgsql':
|
case 'pgsql':
|
||||||
$adapter = 'Pdo_Pgsql';
|
$adapter = 'Pdo_Pgsql';
|
||||||
$adapterParamaters['port'] = $this->config->get('port', 5432);
|
$adapterParamaters['port'] = $this->config->get('port', 5432);
|
||||||
break;
|
break;
|
||||||
/*case 'oracle':
|
|
||||||
if ($this->dbtype === 'oracle') {
|
|
||||||
$attributes['persistent'] = true;
|
|
||||||
}
|
|
||||||
$this->db = ZfDb::factory($adapter, $attributes);
|
|
||||||
if ($adapter === 'Oracle') {
|
|
||||||
$this->db->setLobAsString(false);
|
|
||||||
}
|
|
||||||
break;*/
|
|
||||||
default:
|
default:
|
||||||
throw new ConfigurationError(
|
throw new ConfigurationError(
|
||||||
'Backend "%s" is not supported',
|
'Backend "%s" is not supported',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user