summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-08-26 19:07:51 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-08-26 19:07:51 (GMT)
commitcc9afa9b517fd66bad148f546055985ad87bc816 (patch)
tree7e15ebe4b9b5098735d66280adb2c68305621a25 /Modules/_sqlite/connection.c
parent7ea386e56e76deb2ceeb87c0ac4b346e24cd82e1 (diff)
downloadcpython-cc9afa9b517fd66bad148f546055985ad87bc816.zip
cpython-cc9afa9b517fd66bad148f546055985ad87bc816.tar.gz
cpython-cc9afa9b517fd66bad148f546055985ad87bc816.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 6aa4764..fcc1695 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -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);