qdb_column_decltype()

Retrieve the declared type for a column in a result set

Synopsis:

#include <qdb/qdb.h>

const char *qdb_column_decltype( qdb_result_t *result,
                                 int col );

Arguments:

result
A pointer to a result structure.
col
The index of the column type to return, where 0 (zero) indicates the first column.

Library:

qdb

Description:

The function qdb_column_decltype() returns the declared type of the specified column of a result set. The result set is specified by the result argument. The returned string is valid until qdb_freeresult() is called.

If the specified column is the result of an expression or subquery, an empty string is returned.

Note: To use qdb_column_decltype(), you must set the option QDB_OPTION_COLUMN_DECLTYPES by calling qdb_setoption(). By default, this option is off.

Returns:

A pointer
A pointer to the specified column's declared type.
NULL
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes