summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-08-26 19:19:05 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-08-26 19:19:05 (GMT)
commitdc60c75aee34d12d93e95bf0f941f8afd56bca98 (patch)
tree94a15ecc001c6b67db0f50a3701243908450acaa /Modules/_sqlite/connection.c
parent3f0222c54da0ec48cdd04bb9baf228751403d5b6 (diff)
downloadcpython-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.c1
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);