From 2f094f7b09621b6360c48eca45a27ea49afef130 Mon Sep 17 00:00:00 2001 From: kaliko Date: Thu, 21 Mar 2019 14:53:00 +0100 Subject: [PATCH] Fixed sqlite sqlite3.OperationalError VACUUM Error cf. https://bugs.python.org/issue28518 --- doc/Changelog | 3 ++- sima/lib/simadb.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2