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

        if ($statement->errorCode() == '00000') {
            return;
        }
        throw new DbException($statement->errorInfo(), $sql, $params, $this->_errorReporting);
    }
protected function _executeStatement($statement, $sql, $params) {
        if ((!$statement->execute($params))) {
            throw new DbException($this->_pdoObject->errorInfo(), $sql, $params, $this->_errorReporting);
        }

        if ($statement->errorCode() == '00000') {
            return;
        }
        throw new DbException($statement->errorInfo(), $sql, $params, $this->_errorReporting);
    }
protected function _executeStatement ( $ statement , $ sql , $ params ) { if ( ( ! $ statement -> execute ( $ params ) ) ) { throw new DbException ( $ this -> _pdoObject -> errorInfo ( ) , $ sql , $ params , $ this -> _errorReporting ) ; } if ( $ statement -> errorCode ( ) == '00000' ) { return ; } throw new DbException ( $ statement -> errorInfo ( ) , $ sql , $ params , $ this -> _errorReporting ) ; }
Executes PDOStatement and checks for errors

@throws DbException

@param  \PDOStatement $statement
@param  string        $sql
@param  array         $params

@return void
Executes PDOStatement and checks for errors