mirror of
https://github.com/python/cpython.git
synced 2025-10-28 12:15:13 +00:00
gh-139327: consolidate sqlite3_finalize and sqlite3_reset usages (GH-139329)
This commit is contained in:
parent
4126d9f1ab
commit
27acaf1cb7
5 changed files with 113 additions and 16 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue