Small, Fast, Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## SQLite C Interface

### Extended Result Codes

>     #define SQLITE_IOERR_READ          (SQLITE_IOERR | (1<<8))
>     #define SQLITE_IOERR_SHORT_READ    (SQLITE_IOERR | (2<<8))
>     #define SQLITE_IOERR_WRITE         (SQLITE_IOERR | (3<<8))
>     #define SQLITE_IOERR_FSYNC         (SQLITE_IOERR | (4<<8))
>     #define SQLITE_IOERR_DIR_FSYNC     (SQLITE_IOERR | (5<<8))
>     #define SQLITE_IOERR_TRUNCATE      (SQLITE_IOERR | (6<<8))
>     #define SQLITE_IOERR_FSTAT         (SQLITE_IOERR | (7<<8))
>     #define SQLITE_IOERR_UNLOCK        (SQLITE_IOERR | (8<<8))
>     #define SQLITE_IOERR_RDLOCK        (SQLITE_IOERR | (9<<8))
>     #define SQLITE_IOERR_DELETE        (SQLITE_IOERR | (10<<8))
>     #define SQLITE_IOERR_BLOCKED       (SQLITE_IOERR | (11<<8))
>     #define SQLITE_IOERR_NOMEM         (SQLITE_IOERR | (12<<8))

In its default configuration, SQLite API routines return one of 26 integer result codes described at result-codes. However, experience has shown that many of these result codes are too course-grained. They do not provide as much information about problems as users might like. In an effort to address this, newer versions of SQLite (version 3.3.8 and later) include support for additional result codes that provide more detailed information about errors. The extended result codes are enabled (or disabled) for each database connection using the sqlite3_extended_result_codes() API.

Some of the available extended result codes are listed above. We expect the number of extended result codes will be expand over time. Software that uses extended result codes should expect to see new result codes in future releases of SQLite.

The symbolic name for an extended result code always contains a related primary result code as a prefix. Primary result codes contain a single "_" character. Extended result codes contain two or more "_" characters. The numeric value of an extended result code can be converted to its corresponding primary result code by masking off the lower 8 bytes.

The SQLITE_OK result code will never be extended. It will always be exactly zero.

See also lists of Objects, Constants, and Functions.

This page last modified 2007/11/22 00:41:31 UTC