Skip to content

Commit 37bf9ef

Browse files
Fix merge
1 parent 3fe12d5 commit 37bf9ef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Modules/_sqlite/cursor.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,10 @@ stmt_reset(pysqlite_Statement *self)
130130
{
131131
int rc = SQLITE_OK;
132132

133-
if (self->in_use && self->st) {
133+
if (self->st != NULL) {
134134
Py_BEGIN_ALLOW_THREADS
135135
rc = sqlite3_reset(self->st);
136136
Py_END_ALLOW_THREADS
137-
138-
if (rc == SQLITE_OK) {
139-
self->in_use = 0;
140-
}
141137
}
142138

143139
return rc;

0 commit comments

Comments
 (0)