diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-16 08:43:48 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-11-16 09:02:52 +0000 |
commit | eecac6845930d6319b431a03a4b7f272d297c0e7 (patch) | |
tree | 3216f516d001fdad86644b45a809823d9fc29872 | |
parent | 587a2d4ad1c3a5677deaac4ab656c88b56b2ca57 (diff) | |
download | nextcloud-server-eecac6845930d6319b431a03a4b7f272d297c0e7.tar.gz nextcloud-server-eecac6845930d6319b431a03a4b7f272d297c0e7.zip |
Don't throw on SHOW VERSION query
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/legacy/OC_DB.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_DB.php b/lib/private/legacy/OC_DB.php index 390b2d3b1ea..d2606793f24 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; } |