classDecoratedColumnName
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.
(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 $columnMethods§
public function message(): stringDescribes the problem.
Returns
stringTest 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
Relations§
Instantiated in 3
- new SqlSemantics\Platform\Sqlite\Statement\Schema\CreateView::deriveStatement() packages/sql-semantics-sqlite/src/Statement/Schema/CreateView.php:81
- new SqlSemantics\Platform\Sqlite\Statement\Schema\Reference\ForeignKeyClause::deriveConstraint() packages/sql-semantics-sqlite/src/Statement/Schema/Reference/ForeignKeyClause.php:85
- new SqlSemantics\Platform\Sqlite\Statement\Schema\Table\ForeignKey::deriveConstraint() packages/sql-semantics-sqlite/src/Statement/Schema/Table/ForeignKey.php:59