qdb_column_decltype()

Return a column's declared type

Synopsis:

#include <qdb/qdb.h>

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

Arguments:

result
A pointer to a result structure to check.
col
The index of the column to get the type for, where 0 indicates the leftmost column.

Library:

qdb

Description:

This function returns the declared type of the column found at the specified index in the specified result set. The returned string is valid until you call qdb_freeresult().

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

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

Returns:

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

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes