summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-02-21 17:37:45 +0100
committerGitHub <noreply@github.com>2023-02-21 17:37:45 +0100
commit18c4761ab00429f11355bb3f42772a9142577ab5 (patch)
tree5304d7f990550afc8ac388bc107cf8b18aeb0f02 /lib
parenta7892881a3fd10ff234d14ea878e3104a81d77e8 (diff)
parent74811813e7218f5c24d199086f5b56f8c476ef45 (diff)
downloadnextcloud-server-18c4761ab00429f11355bb3f42772a9142577ab5.tar.gz
nextcloud-server-18c4761ab00429f11355bb3f42772a9142577ab5.zip
Merge pull request #36795 from nextcloud/fix/remove-erronous-parentheses-in-in-clause
Avoid extra parenthesis around SQL in IN expressions
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/RemoveLinkShares.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Repair/RemoveLinkShares.php b/lib/private/Repair/RemoveLinkShares.php
index e1ce78cdbf3..71eead1053b 100644
--- a/lib/private/Repair/RemoveLinkShares.php
+++ b/lib/private/Repair/RemoveLinkShares.php
@@ -126,7 +126,7 @@ class RemoveLinkShares implements IRepairStep {
$query = $this->connection->getQueryBuilder();
$query->select($query->func()->count('*', 'total'))
->from('share')
- ->where($query->expr()->in('id', $query->createFunction('(' . $subQuery->getSQL() . ')')));
+ ->where($query->expr()->in('id', $query->createFunction($subQuery->getSQL())));
$result = $query->execute();
$data = $result->fetch();