fixed group by in count (#2734)

Co-authored-by: David Moškoř <david.moskor@apertia.cz>
This commit is contained in:
David
2023-05-10 08:13:26 +02:00
committed by GitHub
parent 901c0ba24e
commit 1262fdbf29
+1 -2
View File
@@ -230,8 +230,7 @@ class BaseMapper implements RDBMapper
->build();
$wrap = $aggregation === self::FUNC_COUNT && (
$select->isDistinct() ||
$select->getGroup() && $select->getHaving()
$select->isDistinct() || $select->getGroup()
);
if (!$wrap) {