Skip to content

Expose sqlite3_system_errno() on SqliteError #1379

@wolfgang42

Description

@wolfgang42

I have an application that sometimes mysteriously fails with SQLITE_CANTOPEN and no further diagnostic information. Poking around the SQLite docs, I found sqlite3_system_errno(), which sounds like it will tell me more information, and so would be helpful to have on SqliteError.

I briefly investigated adding this, but (a) lzz and (b) I don’t feel like I understand the SQLite API well enough to be confident I got it right: poking around I see that sqliteSystemError only sets this under certain circumstances and it seems like it is otherwise undefined, which could lead people down a rabbit hole if it happens to end up with a misleading value. (See also this discussion which comes to a similar conclusion, but this seems poorly documented and possibly prone to change later.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions