classUnknownColumn
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.
(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 $columnMethods§
public function __construct(public Name $column)Parameters
$column | Name | The name that denotes no column |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.