Name

sqlite3_extended_result_codes() — Enable or disable extended result codes

Definition

int sqlite3_extended_result_codes( sqlite3* db, int enabled );
db

A database connection.

enabled

A nonzero value indicates that extended result codes should be turned on, while a zero value indicates that extended result codes should be turned off.

Returns

An SQLite result code.

Description

This function is used to enable extended result codes. Extended codes are off by default. When enabled, any API function that returns an SQLite result code may return an extended code. The extended code is always available using sqlite3_extended_errcode().

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.