summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-01 19:18:03 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-01 19:18:03 (GMT)
commit2891492d2357253fd832485023c78e593660319d (patch)
tree1616614be0767954f930b724fa580ebbcd88afb4 /Modules/_sqlite/connection.h
parent00b1e0f7ea1523813e3d407bfdefdf55592566af (diff)
downloadcpython-2891492d2357253fd832485023c78e593660319d.zip
cpython-2891492d2357253fd832485023c78e593660319d.tar.gz
cpython-2891492d2357253fd832485023c78e593660319d.tar.bz2
Issue #27881: Fixed possible bugs when setting sqlite3.Connection.isolation_level.
Based on patch by Xiang Zhang.
Diffstat (limited to 'Modules/_sqlite/connection.h')
-rw-r--r--Modules/_sqlite/connection.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/_sqlite/connection.h b/Modules/_sqlite/connection.h
index fbd9063..adbfb54 100644
--- a/Modules/_sqlite/connection.h
+++ b/Modules/_sqlite/connection.h
@@ -55,9 +55,8 @@ typedef struct
/* None for autocommit, otherwise a PyUnicode with the isolation level */
PyObject* isolation_level;
- /* NULL for autocommit, otherwise a string with the BEGIN statement; will be
- * freed in connection destructor */
- char* begin_statement;
+ /* NULL for autocommit, otherwise a string with the BEGIN statement */
+ const char* begin_statement;
/* 1 if a check should be performed for each API call if the connection is
* used from the same thread it was created in */