protected function _prepareStatement($sql, $params, $driverOptions) {
        $statement = $this->_pdoObject->prepare($sql, $driverOptions);

        if (!$statement) {
            throw new DbException($this->_pdoObject->errorInfo(), $sql, $params, $this->_errorReporting);
        }

        return $statement;
    }
protected function _prepareStatement($sql, $params, $driverOptions) {
        $statement = $this->_pdoObject->prepare($sql, $driverOptions);

        if (!$statement) {
            throw new DbException($this->_pdoObject->errorInfo(), $sql, $params, $this->_errorReporting);
        }

        return $statement;
    }
protected function _prepareStatement ( $ sql , $ params , $ driverOptions ) { $ statement = $ this -> _pdoObject -> prepare ( $ sql , $ driverOptions ) ; if ( ! $ statement ) { throw new DbException ( $ this -> _pdoObject -> errorInfo ( ) , $ sql , $ params , $ this -> _errorReporting ) ; } return $ statement ; }
Prepares PDOStatement and checks for errors

@throws DbException

@param string      $sql           SQL statement. No array allowed here, string only
@param array|mixed $params        Query parameters to substitute instead of ? marks in query
@param array       $driverOptions Specific options to pass to underlying PDO prepare() call. Empty array if no options

@return \PDOStatement
Prepares PDOStatement and checks for errors