summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/connection.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-01 19:21:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-01 19:21:05 (GMT)
commitaf0628e045c024fec27432afd1f20c0d08095197 (patch)
tree67ca762679d23287ed5eb05db2af9e90f2f7749a /Modules/_sqlite/connection.h
parent5c071c1ff4c96ccd9d5a1ae381a3bb3ac4590223 (diff)
parent2891492d2357253fd832485023c78e593660319d (diff)
downloadcpython-af0628e045c024fec27432afd1f20c0d08095197.zip
cpython-af0628e045c024fec27432afd1f20c0d08095197.tar.gz
cpython-af0628e045c024fec27432afd1f20c0d08095197.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 */