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

A column name in a plain column list that is written with a collation or a sort order.

The grammar shares one production between indexed column lists and plain column lists; SQLite rejects the decoration in the column list of a foreign key, of a parent key and of a view with "syntax error after column name". Source: https://sqlite.org/syntax/foreign-key-clause.html.

Reporting a sort order in a foreign key column listdoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE c (p, FOREIGN KEY (p DESC) REFERENCES parent)') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Column name p of a column list is written with a collation or a sort order.

Properties§

public Name $column

Methods§

public function __construct(public Name $column)

Parameters

$columnNameThe decorated column name
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 4§

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 3

Relations§

Instantiated in 3