Skip to content

Commit 0ebf8a8

Browse files
Doh, reset _after_ fetching changes
1 parent b75b725 commit 0ebf8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,10 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
953953
}
954954

955955
if (multiple) {
956-
stmt_reset(self->statement);
957956
if (self->statement->is_dml && rc == SQLITE_DONE) {
958957
self->rowcount += (long)sqlite3_changes(self->connection->db);
959958
}
959+
stmt_reset(self->statement);
960960
}
961961
Py_XDECREF(parameters);
962962
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy