SYNOPSIS

\*(T<#include <opendbx/api.h>\*(T>

\*(T<char* odbx_column_name\*(T> \kx \*(T<(odbx_result_t* result, unsigned long pos);\*(T>

DESCRIPTION

\*(T<odbx_column_name\*(T>() gets the name of the column specified by pos in the current result set returned by \*(T<odbx_result\*(T>(). The column names will not change within the result set with the exception described for MySQL in \*(T<odbx_column_count\*(T>() when the first result set wasn't retrieved completely before \*(T<odbx_result\*(T>() was called again.

The \*(T<result\*(T> parameter required by this function must be a valid result set returned by \*(T<odbx_result\*(T>() and must not have been feed to \*(T<odbx_result_finish\*(T>() before.

Valid column indices for the requested column provided via \*(T<pos\*(T> start with zero and end with the value returned by \*(T<odbx_column_count\*(T>() minus one.

RETURN VALUE

The return value of \*(T<odbx_column_name\*(T>() is a pointer to a zero terminated string which consists of the name of the requested column. This pointer is allocated by the database client library and must not be freed by the application. The content of the string may be overwritten by the next call to \*(T<odbx_column_name\*(T>()

ERRORS

Errors can occur if the given \*(T<result\*(T> parameter is NULL or invalid or if the value of \*(T<pos\*(T> is out of range, i.e. more than \*(T<odbx_column_count\*(T>() minus one.

RELATED TO odbx_column_name…

\*(T<odbx_column_count\*(T>(), \*(T<odbx_column_type\*(T>(), \*(T<odbx_result\*(T>()