Man page - odbx_row_fetch(3)
Packages contains this manual
- odbx_escape(3)
- odbx_column_type(3)
- odbx_lo_open(3)
- odbx_error(3)
- odbx_field_length(3)
- odbx_lo_read(3)
- odbx_row_fetch(3)
- odbx_capabilities(3)
- odbx_get_option(3)
- odbx_error_type(3)
- odbx_unbind(3)
- odbx_lo_close(3)
- odbx_bind(3)
- odbx_finish(3)
- odbx_result(3)
- odbx_lo_write(3)
- odbx_column_name(3)
- odbx_rows_affected(3)
- odbx_query(3)
- odbx_field_value(3)
- odbx_column_count(3)
- odbx_init(3)
- odbx_set_option(3)
- odbx_result_finish(3)
apt-get install libopendbx1-dev
Manual
odbx_row_fetch
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
NAME
odbx_row_fetch - Retrieve rows from the result set
SYNOPSIS
#include <opendbx/api.h>
int odbx_row_fetch (odbx_result_t* result );
DESCRIPTION
Retrieves the values of a row from the current result set returned by odbx_result (). Until this function is invoked, no row and field data is available via odbx_field_length () or odbx_field_value () and these functions will return zero respectively NULL.
Moreover, it is necessary to fetch all rows from a result set until zero is returned indicating that no more rows are available. Otherwise - depending on the backend - an error may occur after calling odbx_result () the next time or the outstanding rows will be returned within the next result.
odbx_row_fetch () requires a valid result object which was created by odbx_result (). It must not have been feed to odbx_result_finish () before.
RETURN VALUE
odbx_row_fetch () will return ODBX_ROW_NEXT ("1") as long as rows are available from the result set. After the last row has been made available, further calls to this function will return ODBX_ROW_DONE ("0") indicating that the result set doesnβt contain more rows. The named constants are available since OpenDBX 1.3.2 and the numbers in brackets have to be used instead if a previous release is is the basis for the application development.
In case of an error, values less than zero are returned encodeing the reason why the error occurred.
ERRORS
-ODBX_ERR_PARAM
The result parameter is either NULL or the object is invalid. This is usually the case if result has been already feed to odbx_result_finish ().
SEE ALSO
odbx_column_count (), odbx_column_name (), odbx_column_type (), odbx_error (), odbx_error_type (), odbx_field_length (), odbx_field_value (), odbx_result ()