classAggregation
final class Aggregation
Tells whether a query block aggregates its rows.
Rule: MYSQL-AGGREGATE-QUERY-001. A query block aggregates when one of the given parts holds a set function written without OVER outside any nested query. Such a block without GROUP BY returns one row, also over no input rows, so every input column it reads there can be NULL. Terminates: the walk follows the finite structure and does not enter nested queries. Source: https://dev.mysql.com/doc/refman/8.4/en/aggregate-functions.html ("If you use an aggregate function in a statement containing no GROUP BY
- clause, it is equivalent to grouping on all rows"),
https://dev.mysql.com/doc/refman/8.4/en/group-by-handling.html. Status: Implemented.
Methods§
public function aggregates(list<object> $parts): boolTells whether a set function aggregates in one of the parts, outside nested queries.
Parameters
$parts | list<object> | The structure values to search |
Returns
boolTest cases 1
Called from 1
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.