summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-05-07 13:15:01 (GMT)
committerGitHub <noreply@github.com>2021-05-07 13:15:01 (GMT)
commit0988ed09b4c058fabb58a7ea7e757adafcf8763c (patch)
tree64586bb167b52f0612a7d2202bf4d477aec3505a /Modules/_sqlite/cursor.c
parenta0cb2e43029170fadb917ef3d9fc22c5e2e4e34b (diff)
downloadcpython-0988ed09b4c058fabb58a7ea7e757adafcf8763c.zip
cpython-0988ed09b4c058fabb58a7ea7e757adafcf8763c.tar.gz
cpython-0988ed09b4c058fabb58a7ea7e757adafcf8763c.tar.bz2
bpo-44047: Remove unused argument to _pysqlite_seterror (GH-25915)
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r--Modules/_sqlite/cursor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 60dfc7d..b71f780 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -537,7 +537,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
}
}
(void)pysqlite_statement_reset(self->statement);
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
@@ -715,7 +715,7 @@ pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj)
&script_cstr);
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
@@ -730,13 +730,13 @@ pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj)
if (rc != SQLITE_DONE) {
(void)sqlite3_finalize(statement);
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
rc = sqlite3_finalize(statement);
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
@@ -802,7 +802,7 @@ pysqlite_cursor_iternext(pysqlite_Cursor *self)
if (rc != SQLITE_DONE && rc != SQLITE_ROW) {
(void)pysqlite_statement_reset(self->statement);
Py_DECREF(next_row);
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
return NULL;
}