[Python-checkins] bpo-31746: Fix broken call in GH-27431 (GH-27464)

pablogsal webhook-mailer at python.org
Thu Jul 29 16:47:33 EDT 2021


https://github.com/python/cpython/commit/2d34664051bd014d3b807e51ac7c53f37d90f444
commit: 2d34664051bd014d3b807e51ac7c53f37d90f444
branch: main
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-07-29T21:47:23+01:00
summary:

bpo-31746: Fix broken call in GH-27431 (GH-27464)

files:
M Modules/_sqlite/connection.c

diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index dd332e5e4d81a..f75cf83380711 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);
             }
         }
 



More information about the Python-checkins mailing list