final class RecursiveReference
    implements MissingInput
    uses Snapshot
Public API: explicitly declared with @visibility public.

The nonrecursive part of a recursive common table expression, which fixes the columns a reference to the table sees.

Rule: MYSQL-WITH-001. A recursive common table expression is a set operation whose leading operands do not refer to it; its columns take their types from those operands. A reference to it that is not in a later operand of that set operation, which the server rejects, sees columns that depend on this missing part. Source: https://dev.mysql.com/doc/refman/8.4/en/with.html. Status: Implemented.

Describing the missing partdoctest
(new \SqlSemantics\Platform\MySql\Statement\Query\Problem\RecursiveReference(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('c')))->describe() // => 'the nonrecursive part of recursive common table c'

Properties§

public Name $table

Methods§

public function __construct(public Name $table)

Parameters

$tableNameThe common table expression
public function describe(): string

Describes the missing input.

Returns

string
Test cases 1

Test cases 3§

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

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Type checks 1