fixed group by in count (#2734)
Co-authored-by: David Moškoř <david.moskor@apertia.cz>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user