int sqlite3_extended_errcode( sqlite3* db );
db
A database connection.
An extended error code.
This function is similar to sqlite3_errcode(), except that it will always
return an extended error code, even if extended result codes are
not enabled.
If SQLite is being used in a threaded environment, this function
is subject to the same concerns as sqlite3_errcode().
If an API call returns SQLITE_MISUSE, it indicates an application
error. In that case, the result code may or may not be available
to sqlite3_extended_errcode().