We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2fcf43 commit 4a128b5Copy full SHA for 4a128b5
src/txn.py
@@ -36,7 +36,7 @@ def bayesdb_caching(bdb):
36
def bayesdb_savepoint(bdb):
37
bayesdb_txn_push(bdb)
38
try:
39
- with sqlite3_savepoint(bdb.sqlite3):
+ with sqlite3_savepoint(bdb._sqlite3):
40
yield
41
finally:
42
bayesdb_txn_pop(bdb)
@@ -45,7 +45,7 @@ def bayesdb_savepoint(bdb):
45
def bayesdb_savepoint_rollback(bdb):
46
47
48
- with sqlite3_savepoint_rollback(bdb.sqlite3):
+ with sqlite3_savepoint_rollback(bdb._sqlite3):
49
50
51
@@ -57,7 +57,7 @@ def bayesdb_transaction(bdb):
57
bayesdb_txn_init(bdb)
58
bdb.txn_depth = 1
59
60
- with sqlite3_transaction(bdb.sqlite3):
+ with sqlite3_transaction(bdb._sqlite3):
61
62
63
assert bdb.txn_depth == 1
0 commit comments