From 0eabd84c5f2d374c4a58ffd749b7f511078f0d55 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Fri, 21 Oct 2022 23:42:54 -0300 Subject: [PATCH] Query in sqlite returning wrong result. The function `in` already put the patenthesis, duplicated parenthesis return wrong result with sqlite. Signed-off-by: Vitor Mattos --- lib/Command/Monitor/Calls.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Command/Monitor/Calls.php b/lib/Command/Monitor/Calls.php index 25527d058be..2b4c54332d6 100644 --- a/lib/Command/Monitor/Calls.php +++ b/lib/Command/Monitor/Calls.php @@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $query->select('r.token', $query->func()->count('*', 'num_attendees')) ->from('talk_attendees', 'a') ->leftJoin('a', 'talk_rooms', 'r', $query->expr()->eq('a.room_id', 'r.id')) - ->where($query->expr()->in('a.id', $query->createFunction('(' . $subQuery->getSQL() . ')'))) + ->where($query->expr()->in('a.id', $query->createFunction($subQuery->getSQL()))) ->groupBy('r.token'); $data = [];