Retrieve declared type for a column in a result set
#include <qdb/qdb.h> const char *qdb_column_decltype(qdb_result_t *result, int col);
qdb
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.
To use qdb_column_decltype(), you must set the option QDB_OPTION_COLUMN_DECLTYPES by calling qdb_setoption(). By default, this option is off. |
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
qdb_column_index(), qdb_column_name(), qdb_columns(), qdb_setoption(), qdb_getresult(), qdb_freeresult()