Issue #10513: Fix a regression in Connection.commit()

Statements should not be reset after a commit.

Backported from 029050896b
This commit is contained in:
Berker Peksag 2016-08-26 22:07:51 +03:00
parent 7ea386e56e
commit cc9afa9b51
3 changed files with 34 additions and 1 deletions

View file

@ -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);