From 91a3e439cbc82b06a6a26e27fea3ffa3e3e3611a 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 ee769a46de..0853661c09 100644 --- a/lib/private/legacy/OC_DB.php +++ b/lib/private/legacy/OC_DB.php @@ -103,7 +103,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; }