mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #27881: Fixed possible bugs when setting sqlite3.Connection.isolation_level.
Based on patch by Xiang Zhang.
This commit is contained in:
parent
00b1e0f7ea
commit
2891492d23
4 changed files with 64 additions and 45 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue