summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-11-16 08:43:48 +0100
committerJoas Schilling <coding@schilljs.com>2020-11-16 08:43:48 +0100
commit91a3e439cbc82b06a6a26e27fea3ffa3e3e3611a (patch)
tree32749ca21c87a9a9011dd513cd430eaf33204e0a /lib/private
parent0bed1c2bd0185f57521dfca1794b8ad1af1261fe (diff)
downloadnextcloud-server-91a3e439cbc82b06a6a26e27fea3ffa3e3e3611a.tar.gz
nextcloud-server-91a3e439cbc82b06a6a26e27fea3ffa3e3e3611a.zip
Don't throw on SHOW VERSION query
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/OC_DB.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_DB.php b/lib/private/legacy/OC_DB.php
index ee769a46deb..0853661c090 100644
--- a/lib/private/legacy/OC_DB.php
+++ b/lib/private/legacy/OC_DB.php
@@ -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;
}