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

A column name a table would have twice.

SQLite compares column names without regard to ASCII case and rejects the definition, the added column or the new column name with "duplicate column name". Source: https://sqlite.org/lang_createtable.html, https://sqlite.org/lang_altertable.html.

Reporting a repeated column namedoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a, A)') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Column A is defined more than once.

Properties§

public Name $column

Methods§

public function __construct(public Name $column)

Parameters

$columnNameThe repeated name as written at its later occurrence
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 6§

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 5

Relations§

Instantiated in 3