Skip to content

Commit

Permalink
Remove spurious change
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jun 5, 2022
1 parent 5165a3a commit 1da6390
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 @@ -856,7 +856,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
goto error;
}

if (sqlite3_stmt_readonly(self->statement->st)) {
if (self->statement->in_use) {
Py_SETREF(self->statement,
pysqlite_statement_create(self->connection, operation));
if (self->statement == NULL) {
Expand Down

0 comments on commit 1da6390

Please sign in to comment.