// check the PDO driver is available
if (!
in_array($this->_pdoType, PDO::
getAvailableDrivers())) { /**
* @see Zend_Db_Adapter_Exception
*/
throw new Zend_Db_Adapter_Exception('The ' .
$this->_pdoType . ' driver is not currently installed'
);
} // create PDO connection
$q =
$this->_profiler->
queryStart('connect', Zend_Db_Profiler::CONNECT
);
// add the persistence flag if we find it in our config array
if (isset($this->_config
['persistent'
]) && ($this->_config
['persistent'
] == true
)) { $this->_config
['driver_options'
][PDO::ATTR_PERSISTENT
] = true;
} try { $this->_connection =
new PDO( $dsn,
$this->_config
['username'
],
$this->_config
['password'
],