diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-08-26 19:19:05 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-08-26 19:19:05 (GMT) |
commit | dc60c75aee34d12d93e95bf0f941f8afd56bca98 (patch) | |
tree | 94a15ecc001c6b67db0f50a3701243908450acaa /Modules/_sqlite/connection.c | |
parent | 3f0222c54da0ec48cdd04bb9baf228751403d5b6 (diff) | |
download | cpython-dc60c75aee34d12d93e95bf0f941f8afd56bca98.zip cpython-dc60c75aee34d12d93e95bf0f941f8afd56bca98.tar.gz cpython-dc60c75aee34d12d93e95bf0f941f8afd56bca98.tar.bz2 |
Issue #10513: Fix a regression in Connection.commit()
Statements should not be reset after a commit.
Backported from https://github.com/ghaering/pysqlite/commit/029050896b1e6058573abeef5a8970384c0c7faa
Diffstat (limited to 'Modules/_sqlite/connection.c')
-rw-r--r-- | Modules/_sqlite/connection.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 5bfa644..78cc9be 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -458,7 +458,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); |