gh-139327: consolidate sqlite3_finalize and sqlite3_reset usages (GH-139329)

This commit is contained in:
Bénédikt Tran 2025-10-15 15:18:07 +02:00 committed by GitHub
parent 4126d9f1ab
commit 27acaf1cb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 113 additions and 16 deletions

View file

@ -118,7 +118,9 @@ static void
blob_seterror(pysqlite_Blob *self, int rc)
{
assert(self->connection != NULL);
set_error_from_db(self->connection->state, self->connection->db);
assert(rc != SQLITE_OK);
set_error_from_code(self->connection->state, rc);
assert(PyErr_Occurred());
}
static PyObject *