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

Derives the facts of a set operation.

Rule: MYSQL-SET-FACTS-001. Both operands are derived in the enclosing environment, each its own query block; the output columns combine them by MYSQL-RESULT-SLOTS-001. In the query of a recursive common table expression (MYSQL-WITH-001) a right operand that refers to the table sees it with the columns of the left operand, all nullable, and those columns are the output, whose types the recursive part does not change. The operands of a leading union (MYSQL-LEADING-UNION-001) are derived the same way and combined for the operation that continues it; the form needs MySQL 5.6 or 5.7, and the own LIMIT of its last SELECT needs 5.6. Terminates: both operands are strict parts. Source: https://dev.mysql.com/doc/refman/8.4/en/set-operations.html, https://dev.mysql.com/doc/refman/8.4/en/with.html. Status: Implemented.

Methods§

public function derive(
    SetOperation $operation,
    Derivation $derivation,
    Environment $outer,
): QueryFact
public function leading(
    LeadingUnion $leading,
    Derivation $derivation,
    Environment $outer,
): QueryFact

Derives the operands of a leading union and answers the rows they combine to.

Parameters

$leadingLeadingUnion
$derivationDerivation
$outerEnvironment

Returns

Throws

InvalidConstruction When the release does not read the form
Called from 1
Calls 6

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 2
Method calls 2