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

A column name that a table change or a partitioning names but the completely known table does not have.

The server rejects the statement: ER_BAD_FIELD_ERROR for a changed, renamed, altered or partitioning column, ER_CANT_DROP_FIELD_OR_KEY for a dropped one. A column the same statement already dropped, changed or renamed away counts as absent. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Alter\Problem\UnknownColumn(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('c')))->message() // => 'Column c does not exist in the table.'

Properties§

public Name $column

Methods§

public function __construct(public Name $column)

Parameters

$columnNameThe name that denotes no column
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 2
Type declarations 1