summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-06-04 20:42:20 (GMT)
committerGitHub <noreply@github.com>2021-06-04 20:42:20 (GMT)
commit7459208de194db6222d7e3aa301c2b831dbe566d (patch)
treefd4c04952bdb804c2a2bf739123b5e658a6f08b1 /Modules/_sqlite/cursor.c
parent006fd869e4798b68e266f5de89c83ddb531a756b (diff)
downloadcpython-7459208de194db6222d7e3aa301c2b831dbe566d.zip
cpython-7459208de194db6222d7e3aa301c2b831dbe566d.tar.gz
cpython-7459208de194db6222d7e3aa301c2b831dbe566d.tar.bz2
bpo-44315: Remove unused connection argument from pysqlite_step() (GH-26535)
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r--Modules/_sqlite/cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 7f33b3d..c2e8de5 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -568,7 +568,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
goto error;
}
- rc = pysqlite_step(self->statement->st, self->connection);
+ rc = pysqlite_step(self->statement->st);
if (rc != SQLITE_DONE && rc != SQLITE_ROW) {
if (PyErr_Occurred()) {
/* there was an error that occurred in a user-defined callback */
@@ -773,7 +773,7 @@ pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj)
/* execute statement, and ignore results of SELECT statements */
do {
- rc = pysqlite_step(statement, self->connection);
+ rc = pysqlite_step(statement);
if (PyErr_Occurred()) {
(void)sqlite3_finalize(statement);
goto error;
@@ -847,7 +847,7 @@ pysqlite_cursor_iternext(pysqlite_Cursor *self)
}
if (self->statement) {
- rc = pysqlite_step(self->statement->st, self->connection);
+ rc = pysqlite_step(self->statement->st);
if (PyErr_Occurred()) {
(void)pysqlite_statement_reset(self->statement);
Py_DECREF(next_row);