Return the last error string
#include <qdb/qdb.h> const char *qdb_geterrmsg( qdb_hdl_t *db );
You typically call this function after one of the above functions fails. If the error occurred within the SQL library, the returned string is an SQLite error message. If the error occurred in the QDB system, the returned string is a POSIX errno message.
A pointer to an unmodifiable string containing the error message from the last QDB operation, or an empty string if there is no error. If the database handle is invalid, the function returns a pointer to a string containing the POSIX not connected errno message.
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |