summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.h
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-12 04:16:43 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-12 04:16:43 (GMT)
commit59da4b324f08247d389a4c89e1e84243f41c489f (patch)
treef82798f28c4b1e3a157a0375c31579b871491408 /Modules/_sqlite/connection.h
parente7da2f8380fbd92d5978e9fb8ce317ecfd17d12e (diff)
downloadcpython-59da4b324f08247d389a4c89e1e84243f41c489f.zip
cpython-59da4b324f08247d389a4c89e1e84243f41c489f.tar.gz
cpython-59da4b324f08247d389a4c89e1e84243f41c489f.tar.bz2
Issue #28037: Use sqlite3_get_autocommit() instead of setting Connection->inTransaction manually
Patch adapted from https://github.com/ghaering/pysqlite/commit/9b79188edbc50faa24dc178afe24a10454f3fcad
Diffstat (limited to 'Modules/_sqlite/connection.h')
-rw-r--r--Modules/_sqlite/connection.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_sqlite/connection.h b/Modules/_sqlite/connection.h
index adbfb54..2860a0c 100644
--- a/Modules/_sqlite/connection.h
+++ b/Modules/_sqlite/connection.h
@@ -37,10 +37,6 @@ typedef struct
PyObject_HEAD
sqlite3* db;
- /* 1 if we are currently within a transaction, i. e. if a BEGIN has been
- * issued */
- char inTransaction;
-
/* the type detection mode. Only 0, PARSE_DECLTYPES, PARSE_COLNAMES or a
* bitwise combination thereof makes sense */
int detect_types;