From eecac6845930d6319b431a03a4b7f272d297c0e7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 16 Nov 2020 08:43:48 +0100 Subject: [PATCH] Don't throw on SHOW VERSION query Signed-off-by: Joas Schilling --- lib/private/legacy/OC_DB.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/legacy/OC_DB.php b/lib/private/legacy/OC_DB.php index 390b2d3b1e..d2606793f2 100644 --- a/lib/private/legacy/OC_DB.php +++ b/lib/private/legacy/OC_DB.php @@ -102,7 +102,8 @@ class OC_DB { return true; } - \OC::$server->getLogger()->logException(new \Exception('Can not detect if query is manipulating: ' . $sql)); + // This is triggered with "SHOW VERSION" and some more, so until we made a list, we keep this out. + // \OC::$server->getLogger()->logException(new \Exception('Can not detect if query is manipulating: ' . $sql)); return false; }