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

A name several visible slots have at the same precedence; none is chosen.

Keeping every candidate of an ambiguous columndoctest
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
    $declarations = $semantics->context([$semantics->analyze('CREATE TABLE t (a INTEGER)'), $semantics->analyze('CREATE TABLE u (a INTEGER)')]);
    $semantics->analyze('SELECT a FROM t, u', $declarations) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Column a is ambiguous.

Properties§

public list<ResolvedColumn> $candidates
public Name $name

Methods§

public function __construct(public Name $name, list<ResolvedColumn> $candidates)

Parameters

$nameNameThe column name
$candidateslist<ResolvedColumn>The equally ranked candidates; at least two
Calls 2
public function message(): string

Describes the problem.

Returns

string

Test cases 4§

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

Other tests reaching this symbol 4

Relations§

Instantiated in 5