1234567891011121314151617 |
- $OpenBSD: patch-minidb_py,v 1.2 2017/01/06 10:45:20 sthen Exp $
- workaround https://bugs.python.org/issue28518
- also see https://bugs.python.org/issue10740
- --- minidb.py.orig Fri Jan 6 10:29:50 2017
- +++ minidb.py Fri Jan 6 10:31:03 2017
- @@ -131,7 +131,7 @@ class Store(object):
- MINIDB_ATTR = '_minidb'
-
- def __init__(self, filename=':memory:', debug=False, smartupdate=False):
- - self.db = sqlite3.connect(filename, check_same_thread=False)
- + self.db = sqlite3.connect(filename, check_same_thread=False, isolation_level=None)
- self.debug = debug
- self.smartupdate = smartupdate
- self.registered = {}
|