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.