protected function _prepare($sql)
    {
        try {
            $this->_stmt = $this->_adapter->getConnection()->prepare($sql);
        } catch (PDOException $e) {
            // require_once 'Zend/Db/Statement/Exception.php';
            throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
        }
    }
protected function _prepare($sql)
    {
        try {
            $this->_stmt = $this->_adapter->getConnection()->prepare($sql);
        } catch (PDOException $e) {
            // require_once 'Zend/Db/Statement/Exception.php';
            throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
        }
    }
protected function _prepare ( $ sql ) { try { $ this -> _stmt = $ this -> _adapter -> getConnection ( ) -> prepare ( $ sql ) ; } catch ( PDOException $ e ) { // require_once 'Zend/Db/Statement/Exception.php'; throw new Zend_Db_Statement_Exception ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Prepare a string SQL statement and create a statement object.

@param string $sql
@return void
@throws Zend_Db_Statement_Exception
Prepare a string SQL statement and create a statement object .