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

A relation name that several distinct declarations of the context claim; none is chosen.

Keeping conflicting declarationsdoctest
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
    $declarations = $semantics->context([$semantics->analyze('CREATE TABLE t (a INTEGER)'), $semantics->analyze('CREATE TABLE t (b TEXT)')]);
    $semantics->analyze('SELECT 1 FROM t', $declarations) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Relation t has conflicting declarations.

Properties§

public list<Table> $candidates

Methods§

public function __construct(public QualifiedName $name, list<Table> $candidates)

Parameters

$nameQualifiedNameThe name as the statement wrote it
$candidateslist<Table>The declarations that claim the name; at least two
Calls 2
public function message(): string

Describes the problem.

Returns

string

Test cases 1§

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

Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type checks 2