mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10513: Fix a regression in Connection.commit()
Statements should not be reset after a commit.
Backported from 029050896b
This commit is contained in:
parent
7ea386e56e
commit
cc9afa9b51
3 changed files with 34 additions and 1 deletions
|
@ -426,7 +426,6 @@ PyObject* pysqlite_connection_commit(pysqlite_Connection* self, PyObject* args)
|
|||
}
|
||||
|
||||
if (self->inTransaction) {
|
||||
pysqlite_do_all_statements(self, ACTION_RESET, 0);
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
rc = sqlite3_prepare(self->db, "COMMIT", -1, &statement, &tail);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue