summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-02-21 12:13:02 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-02-21 16:56:44 +0000
commit50619265732662cbd356819742556a7536593ab5 (patch)
treec72a6a07e36af1d2264f0b9ca7390b5c58e4753d /lib/private
parent770a04eb198735334edacca43bb4e2c0a6317f02 (diff)
downloadnextcloud-server-50619265732662cbd356819742556a7536593ab5.tar.gz
nextcloud-server-50619265732662cbd356819742556a7536593ab5.zip
Avoid extra parenthesis around SQL in IN expressions
The expression builder already suround the SQL with parenthesis when using in(), so we must not add another pair, this confuses at least sqlite. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private')
-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 1b0270e928d..7871d5beb62 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();