Issue #27881: Fixed possible bugs when setting sqlite3.Connection.isolation_level.

Based on patch by Xiang Zhang.
This commit is contained in:
Serhiy Storchaka 2016-09-01 22:18:03 +03:00
parent 00b1e0f7ea
commit 2891492d23
4 changed files with 64 additions and 45 deletions

View file

@ -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 */