final class GroupedRow
    implements Relation
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

The entry of a HAVING environment that hands the select list and the GROUP BY columns to the names written there.

Rule: MYSQL-HAVING-REFERENCE-001 (see ResultReferences). The entry travels as a visible occurrence with neither alias nor name and without any column, so no column lookup, qualifier or star can reach it; only HavingScope and ResultReferences recognise it, by its class. It is a working value of one derivation and never part of a statement. Source: https://dev.mysql.com/doc/refman/8.4/en/select.html. Status: Implemented.

Properties§

public list<Field|OpenStar> $selected
public list<Field> $grouping
public bool $grouped
public list<ConditionalColumn> $undecided = []

Methods§

public function __construct(
    public list<Field|OpenStar> $selected,
    public list<Field> $grouping,
    public bool $grouped,
    public list<ConditionalColumn> $undecided = [],
)

Parameters

$selectedlist<Field|OpenStar>The output fields of the select list, in order
$groupinglist<Field>The GROUP BY items that are columns, each with the resolution of its column at the HAVING position
$groupedboolWhether the query block groups, aggregates or is DISTINCT
$undecidedlist<ConditionalColumn>The GROUP BY items and select list items that are columns of an incompletely known occurrence
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Answers the row without columns the entry contributes.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
Calls 2
public function render(Output $out): void

Writes nothing: the entry is not written.

Parameters

$outOutput
Test cases 1

Test cases 8§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 6

Relations§

Instantiated in 1
Type checks 2
Type declarations 7