Skip to content

[Bug] QueryBuilder Sum aggregate not working with group statements #9567

Closed
@dsturrock

Description

@dsturrock

Just had a situation where I was performing SUM on a statement grouped by week and getting back 52 results from MySQL as expected. When running the same thing through a QueryBuilder->sum() function it only returns the first value.

I'd guess it would either want to ignore the group by and SUM the whole lot but it's only returning the SUM for the first week, so it's still using the group by but not returning all results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions