Don't throw on SHOW VERSION query

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-11-16 08:43:48 +01:00 committed by backportbot[bot]
parent 587a2d4ad1
commit eecac68459
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ class OC_DB {
return true; 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; return false;
} }