From 99113a78f0f67ade4a78006d6a86aaf32849c9df Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 23 Jul 2013 20:09:55 +0200 Subject: [PATCH] Fix Updater if used with MDB2 --- lib/updater.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/updater.php b/lib/updater.php index 93a8c49128e..cbba543217b 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -123,7 +123,12 @@ class OC_Updater extends BasicEmitter { FROM `*PREFIX*fscache` '); $result = $query->execute(); + if(\OCP\DB::isError($result)) { + //MDB2 does not throw Exception by itself + throw new \Exception($result->getMessage()); + } } catch (\Exception $e) { + //No such table, i.e. filecache upgrade already proceeded return; } $users = $result->fetchAll(); -- 2.39.5