Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-16 10:43:48 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-16 12:05:44 +0300
commit353947a7dbd8ad85c558b306233ecc9aa1b21bae (patch)
treea5577748891ad8e43256d3f0ca082f0db31f3b99 /lib
parent81e42fb956457059ea0d275f1476836f9603538d (diff)
Don't throw on SHOW VERSION query
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/db.php3
1 files changed, 2 insertions, 1 deletions
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;
}