return;
} // get the dsn first, because some adapters alter the $_pdoType
$dsn =
$this->
_dsn();
// check for PDO extension
if (!
extension_loaded('pdo'
)) { /**
* @see Zend_Db_Adapter_Exception
*/
throw new Zend_Db_Adapter_Exception('The PDO extension is required for this adapter but the extension is not loaded'
);
} // 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