Skip to content

Refactor sqlite3 error handler #129928

Closed

Description

@erlend-aasland

In most error cases, we can use the error indicator from the SQLite database pointer when we raise exceptions. However, for some SQLite C APIs, we have to use the result code directly. This is the case for some of the blob APIs, where the error indicator is not stored on the database pointer.

Currently, our "set error" handler only handles the case where the error indicator is set on the database pointer. We also need an Modules/_sqlite private API for raising exception from the SQLite C API result codes.

See also #128507 (comment)

Linked PRs

Activity

  1. added 4 commits that reference this issue on Feb 10, 2025
  2. added a commit that references this issue on Feb 11, 2025
  3. added a commit that references this issue on Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions