qdb_geterrcode()

Return the last error code

Synopsis:

#include <qdb/qdb.h>

int qdb_geterrcode( qdb_hdl_t *db );

Arguments:

db
A pointer to the database handle.

Library:

qdb

Description:

This function returns the SQL error code for the most recent call to one of:
  • qdb_backup()
  • qdb_getdbsize()
  • qdb_getoption()
  • qdb_getresult()
  • qdb_setoption()
  • qdb_statement()
  • qdb_vacuum()

You typically call this function after one of the above functions fails.

Returns:

>0
The SQL error code from the last failed QDB operation.
0
There is no error, or the database handle is invalid.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes