Update sqlite3.py to enable autocommit

as per saltstack #18152 
https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.isolation_level
addition of "isolation_level=None" to sqlite3.connect allows autocommit of "INSERT"
otherwise _connect would have to be called again with a con.commit()
This commit is contained in:
sumso 2014-11-18 09:10:51 -08:00 committed by rallytime
parent 969ecb487e
commit 61ed91af86

View File

@ -23,7 +23,7 @@ def _connect(db=None):
if db is None:
return False
con = sqlite3.connect(db)
con = sqlite3.connect(db, isolation_level=None)
cur = con.cursor()
return cur