From 2d34664051bd014d3b807e51ac7c53f37d90f444 Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Thu, 29 Jul 2021 22:47:23 +0200 Subject: [PATCH] bpo-31746: Fix broken call in GH-27431 (GH-27464) --- Modules/_sqlite/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index dd332e5e4d8..f75cf833807 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1307,7 +1307,7 @@ pysqlite_connection_set_isolation_level(pysqlite_Connection* self, PyObject* iso rc = sqlite3_exec(self->db, "COMMIT", NULL, NULL, NULL); Py_END_ALLOW_THREADS if (rc != SQLITE_OK) { - return _pysqlite_seterror(self->db); + return _pysqlite_seterror(self->state, self->db); } }