bpo-45512: Simplify manage isolation level (GH-29562)

This commit is contained in:
Dong-hee Na 2021-11-17 21:47:02 +09:00 committed by GitHub
parent 5f9247e36a
commit e002bbc6cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 41 deletions

View file

@ -42,15 +42,15 @@ typedef struct _callback_context
typedef struct
{
PyObject_HEAD
sqlite3* db;
sqlite3 *db;
pysqlite_state *state;
/* the type detection mode. Only 0, PARSE_DECLTYPES, PARSE_COLNAMES or a
* bitwise combination thereof makes sense */
int detect_types;
/* NULL for autocommit, otherwise a string with the BEGIN statement */
const char* begin_statement;
/* NULL for autocommit, otherwise a string with the isolation level */
const char *isolation_level;
/* 1 if a check should be performed for each API call if the connection is
* used from the same thread it was created in */