From ea7b8893e2bf66229b2e79c64cf7ebd231016ddf Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Thu, 29 Jul 2021 22:17:28 +0200 Subject: [PATCH] bpo-31746: Fix broken call in GH-27431 --- 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 dd332e5e4d81a7..f75cf833807114 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); } }