]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed sqlite sqlite3.OperationalError VACUUM Error
authorkaliko <kaliko@azylum.org>
Thu, 21 Mar 2019 13:53:00 +0000 (14:53 +0100)
committerkaliko <kaliko@azylum.org>
Thu, 21 Mar 2019 13:53:00 +0000 (14:53 +0100)
cf. https://bugs.python.org/issue28518

doc/Changelog
sima/lib/simadb.py

index e9c0c1b3fa5f1175a6bdc7e4ac557a61a80398fb..69be666af4dbdcbff54c67fe85f36241df610874 100644 (file)
@@ -1,6 +1,7 @@
 MPD_sima v0.15.2 UNRELEASED
 
- *
+ * Fixed sqlite sqlite3.OperationalError VACUUM Error
+ cf. https://bugs.python.org/issue28518
 
 -- kaliko jack <kaliko@azylum.org>
 
index 1fbd93c96dedd09d81887ed182fe48666cd41b3e..ba2809755da33f0d49a7b9240547acb30e4c12bb 100644 (file)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (c) 2009-2013 Jack Kaliko <jack@azylum.org>
+# Copyright (c) 2009-2013, 2019 Jack Kaliko <jack@azylum.org>
 # Copyright (c) 2009, Eric Casteleijn <thisfred@gmail.com>
 # Copyright (c) 2008 Rick van Hattem
 #
@@ -85,7 +85,7 @@ class SimaDB(object):
     def get_database_connection(self):
         """get database reference"""
         connection = sqlite3.connect(
-            self._db_path, timeout=5.0, isolation_level="immediate")
+            self._db_path, timeout=5.0, isolation_level=None)
         #connection.text_factory = str
         return connection