Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor sqlite3 error handler #129928

Closed
@erlend-aasland

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions