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

index 390b2d3b1ea4ed96202fa0187b497a33e5077f16..d2606793f24523385ccedac7a84496f13b57fb11 100644 (file)
@@ -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;
        }