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\Sqlite\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\Sqlite\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 4§

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

Dedicated tests 2
Other tests reaching this symbol 2

Relations§

Instantiated in 1