classAggregation
final class Aggregation
Finds the aggregate function calls among the parts of a selection.
Rule: SQLITE-AGGREGATE-QUERY-001. A selection without GROUP BY that calls an aggregate function in its result columns, HAVING or ORDER BY returns one row even for an empty input; a column of the input read outside an aggregate is then NULL, so in such a selection every input column can be NULL. A call inside a nested query counts for the enclosing selection as well, which can only make more columns able to be NULL. Terminates: the structure is a finite tree walked once. Source: https://sqlite.org/lang_select.html#bare_columns_in_an_aggregate_query. Status: Implemented.
Methods§
public function aggregates(list<Node> $nodes): boolTells whether any of the nodes contains a call of a built-in aggregate function without a window.
Parameters
$nodes | list<Node> |
Returns
boolTest cases 4
Called from 1
Calls 5
- new ValueGraph line 36
- new Functions line 37
- method-call ValueGraph::objects() line 39
- method-call Functions::aggregates() line 40
- function-call
countline 40
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.