Skip to content

Commit

Permalink
Add constants for setting transaction isolation level (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chojas authored and mkleehammer committed Oct 31, 2017
1 parent 5eb9d0d commit 5743414
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pyodbcmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,13 @@ static const ConstantDef aConstants[] = {
MAKECONST(SQL_UNION),
MAKECONST(SQL_USER_NAME),
MAKECONST(SQL_XOPEN_CLI_YEAR),

// SQLSetConnectAttr transaction isolation
MAKECONST(SQL_ATTR_TXN_ISOLATION),
MAKECONST(SQL_TXN_READ_UNCOMMITTED),
MAKECONST(SQL_TXN_READ_COMMITTED),
MAKECONST(SQL_TXN_REPEATABLE_READ),
MAKECONST(SQL_TXN_SERIALIZABLE),
};


Expand Down

0 comments on commit 5743414

Please sign in to comment.