From: kaliko Date: Thu, 21 Mar 2019 13:53:00 +0000 (+0100) Subject: Fixed sqlite sqlite3.OperationalError VACUUM Error X-Git-Tag: 0.15.2~6 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=2f094f7b09621b6360c48eca45a27ea49afef130;p=mpd-sima.git Fixed sqlite sqlite3.OperationalError VACUUM Error cf. https://bugs.python.org/issue28518 --- diff --git a/doc/Changelog b/doc/Changelog index e9c0c1b..69be666 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ MPD_sima v0.15.2 UNRELEASED - * + * Fixed sqlite sqlite3.OperationalError VACUUM Error + cf. https://bugs.python.org/issue28518 -- kaliko jack diff --git a/sima/lib/simadb.py b/sima/lib/simadb.py index 1fbd93c..ba28097 100644 --- a/sima/lib/simadb.py +++ b/sima/lib/simadb.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (c) 2009-2013 Jack Kaliko +# Copyright (c) 2009-2013, 2019 Jack Kaliko # Copyright (c) 2009, Eric Casteleijn # 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