]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31746: Fix broken call in GH-27431 (GH-27464)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Thu, 29 Jul 2021 20:47:23 +0000 (22:47 +0200)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 20:47:23 +0000 (21:47 +0100)
Modules/_sqlite/connection.c

index dd332e5e4d81a731c381b59ac24ffd99768d2332..f75cf8338071144a8a4b80b7c91d3ec7ad417300 100644 (file)
@@ -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);
             }
         }