SYNOPSIS

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

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

DESCRIPTION

\*(T<odbx_field_length\*(T>() returns the length of the field value in bytes. The field is part of the current row which was retrieved by the latest call to \*(T<odbx_row_fetch\*(T>() and is specified by the column index given by \*(T<pos\*(T>.

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 \*(T<odbx_field_length\*(T>() function provides the number of bytes of the specified field to the caller. If the field value consists of character data, the returned length will be without the terminating zero character. For binary values the exact size of the block as stored in the database is returned.

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_length…

\*(T<odbx_field_value\*(T>(), \*(T<odbx_result\*(T>()