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

Derives the facts of a query expression.

Rule: MYSQL-QUERY-EXPRESSION-FACTS-001. The WITH clause binds its common tables (MYSQL-WITH-001) for the body, the ordering and the limit. The ORDER BY items see the output columns of the body by name and position (MYSQL-SORT-SCOPE-001) and, beyond them, the enclosing queries; they see no table of the body. The output is that of the body. Terminates: the body is a strict part. Source: https://dev.mysql.com/doc/refman/8.4/en/union.html ("ORDER BY ... cannot use column references that include a table name"), https://dev.mysql.com/doc/refman/8.4/en/with.html. Status: Implemented.

Methods§

public function derive(
    QueryExpression $expression,
    Derivation $derivation,
    Environment $outer,
): QueryFact
public function ordering(
    QueryFact $fact,
    list<OrderItem> $orderBy,
    ?Limit $limit,
    Derivation $derivation,
    Environment $environment,
): void

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