final class MissingColumn
    implements Resolution, Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A name that no visible relation has, established by complete declarations.

Establishing that a column does not existdoctest
$semantics = new \SqlSemantics\Platform\PostgreSql\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER)');
    $semantics->analyze('SELECT b FROM t', [$table]) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: Column b does not exist.

Properties§

public Name $name
public QualifiedName|null $qualifier = null

Methods§

public function __construct(public Name $name, public QualifiedName|null $qualifier = null)

Parameters

$nameNameThe column name
$qualifierQualifiedName|nullThe relation qualifier the use wrote
public function message(): string

Describes the problem.

Returns

string

Test cases 7§

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

Other tests reaching this symbol 7

Relations§

Instantiated in 4
Type checks 2