]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't throw on SHOW VERSION query 24146/head
authorJoas Schilling <coding@schilljs.com>
Mon, 16 Nov 2020 07:43:48 +0000 (08:43 +0100)
committerJoas Schilling <coding@schilljs.com>
Mon, 16 Nov 2020 07:43:48 +0000 (08:43 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/legacy/OC_DB.php

index ee769a46deb4722979df360a11fc9496ba38b909..0853661c09017d642afe502e081eb3c4b232fa0a 100644 (file)
@@ -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;
        }