From: Erlend Egeberg Aasland Date: Thu, 29 Jul 2021 20:47:23 +0000 (+0200) Subject: bpo-31746: Fix broken call in GH-27431 (GH-27464) X-Git-Tag: v3.11.0a1~521 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d34664051bd014d3b807e51ac7c53f37d90f444;p=thirdparty%2FPython%2Fcpython.git bpo-31746: Fix broken call in GH-27431 (GH-27464) --- diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index dd332e5e4d81..f75cf8338071 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); } }