Man page - odbx_column_count(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_column_count
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
NAME
odbx_column_count - Get the number of columns in the current result set
SYNOPSIS
#include <opendbx/api.h>
int odbx_column_count (odbx_result_t* result );
DESCRIPTION
Returns the number of columns which belongs to the current result set allocated by odbx_result (). The number will never change within a result set with one notable exception: MySQL returns all outstanding rows of a previous result set first if they were not fetched completely by odbx_row_fetch () before. Therefore, the column count might change in this special situation. It is strongly advised to fetch all rows of a result set before calling odbx_result () again because other backends will return an error in this case.
The result parameter required by this function must be a valid result set returned by odbx_result () and must not has been feed to odbx_result_finish () before.
RETURN VALUE
odbx_column_count () returns the number of columns/fields which are available in the current result set. The value depends on the column list being part of the SELECT query and it is zero if the query wasn’t a SELECT-like query.
ERRORS
This function will also return zero if the result parameter is invalid.
SEE ALSO
odbx_column_name (), odbx_column_type (), odbx_result ()