irm-1.6-b3/MDB/oci8.php
/**
     * check if the end of the result set has been reached
     * 
     * @param resource $result result identifier
     * @return mixed TRUE or FALSE on sucess, a MDB error on failure
     * @access public 
     */
check if the end of the result set has been reached

@param resource $result result identifier
@return mixed TRUE or FALSE on sucess, a MDB error on failure
@access public
check if the end of the result set has been reached @param resource $result result identifier @return mixed TRUE or FALSE on sucess a MDB error on failure @access public
function endOfResult($result)
    {
        $result_value = intval($result);
        if (!isset($this->current_row[$result_value])) {
            return($this->raiseError(MDB_ERROR, NULL, NULL,
                'End of result: attempted to check the end of an unknown result'));
        }
        if (isset($this->results[$result_value]) && end($this->results[$result_value]) === FALSE) {
            return(($this->highest_fetched_row[$result_value]-1) <= $this->current_row[$result_value]);
        }
        if (isset($this->row_buffer[$result_value])) {
            return(!$this->row_buffer[$result_value]);
        }
        if (isset($this->limits[$result_value])) {
            if (MDB::isError($this->_skipLimitOffset($result))
                || ($this->current_row[$result_value]) > $this->limits[$result_value][1]
            ) {
                return(TRUE);
            }
        }
        if (@OCIFetchInto($result, $this->row_buffer[$result_value], OCI_RETURN_NULLS)) {
            return(FALSE);
        }
        $this->row_buffer[$result_value] = FALSE;
        return(TRUE);
    }
function endOfResult ( $ result ) { $ result_value = intval ( $ result ) ; if ( ! isset ( $ this -> current_row [ $ result_value ] ) ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'End of result: attempted to check the end of an unknown result' ) ) ; } if ( isset ( $ this -> results [ $ result_value ] ) && end ( $ this -> results [ $ result_value ] ) === FALSE ) { return ( ( $ this -> highest_fetched_row [ $ result_value ] - 1 ) <= $ this -> current_row [ $ result_value ] ) ; } if ( isset ( $ this -> row_buffer [ $ result_value ] ) ) { return ( ! $ this -> row_buffer [ $ result_value ] ) ; } if ( isset ( $ this -> limits [ $ result_value ] ) ) { if ( MDB :: isError ( $ this -> _skipLimitOffset ( $ result ) ) || ( $ this -> current_row [ $ result_value ] ) > $ this -> limits [ $ result_value ] [ 1 ] ) { return ( TRUE ) ; } } if ( @ OCIFetchInto ( $ result , $ this -> row_buffer [ $ result_value ] , OCI_RETURN_NULLS ) ) { return ( FALSE ) ; } $ this -> row_buffer [ $ result_value ] = FALSE ; return ( TRUE ) ; }
check if the end of the result set has been reached
check if the end of the result set has been reached