Small. Fast. Reliable.
Choose any three.

SQLite C Interface

Enable Or Disable Extended Result Codes

int sqlite3_extended_result_codes(sqlite3*, int onoff);

The sqlite3_extended_result_codes() routine enables or disables the extended result codes feature on a database connection if its 2nd parameter is non-zero or zero, respectively. By default, SQLite API routines return one of only 26 integer result codes. When extended result codes are enabled by this routine, the repetoire of result codes can be much larger and can (hopefully) provide more detailed information about the cause of an error.

The second argument is a boolean value that turns extended result codes on and off. Extended result codes are off by default for backwards compatibility with older versions of SQLite.

See also lists of Objects, Constants, and Functions.


This page last modified 2007/12/14 14:37:57 UTC