Merge pull request #24147 from nextcloud/backport/24146/stable20

[stable20] Don't throw on SHOW VERSION query
This commit is contained in:
Roeland Jago Douma 2020-11-16 12:08:56 +01:00 committed by GitHub
commit bca0633e2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View 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;
}