SYNOPSIS

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

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

DESCRIPTION

\*(T<odbx_field_value\*(T>() returns a pointer to the field data specified by the column index \*(T<pos\*(T>. The field is part of the current row which was retrieved by the latest call to \*(T<odbx_row_fetch\*(T>().

All values except binary objects are handed back as strings terminated by the zero character. This does also apply to numeric values, dates, etc. They have to be converted to their binary machine dependent representation before arithmetic operations can be done. If a value is undefined, i.e. "NULL" is attached to the field in the database, an equivalent NULL pointer is returned.

The \*(T<result\*(T> parameter required by this function must be a valid result set returned by \*(T<odbx_result\*(T>() and must not has 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 function provides the address pointing to the beginning of the field value where the string or binary object is stored in memory to the caller. It returns a NULL pointer if the field is a "NULL" value.

ERRORS

This function will also return zero if the \*(T<result\*(T> parameter is invalid or if the value of \*(T<pos\*(T> is out of range.

RELATED TO odbx_field_value…

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