Skip to content

Commit

Permalink
Doh, reset _after_ fetching changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jun 8, 2022
1 parent b75b725 commit 0ebf8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_sqlite/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,10 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
}

if (multiple) {
stmt_reset(self->statement);
if (self->statement->is_dml && rc == SQLITE_DONE) {
self->rowcount += (long)sqlite3_changes(self->connection->db);
}
stmt_reset(self->statement);
}
Py_XDECREF(parameters);
}
Expand Down

0 comments on commit 0ebf8a8

Please sign in to comment.