From 353947a7dbd8ad85c558b306233ecc9aa1b21bae Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 16 Nov 2020 08:43:48 +0100 Subject: Don't throw on SHOW VERSION query Signed-off-by: Joas Schilling --- lib/private/legacy/db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/legacy/db.php b/lib/private/legacy/db.php index 31e3c24ceb7..ae5ca7b6bda 100644 --- a/lib/private/legacy/db.php +++ b/lib/private/legacy/db.php @@ -101,7 +101,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; } -- cgit v1.2.3