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

A column of a created table or an alias of a view column that is not a valid column name (ER_WRONG_COLUMN_NAME).

Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html#error_er_wrong_column_name.

Reading the problem of a selected column whose generated name ends in a spacedoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze("CREATE TABLE t AS SELECT 'a '", []) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Incorrect column name 'a '.

Properties§

public Name $column

Methods§

public function __construct(public Name $column)

Parameters

$columnNameThe rejected name
public function message(): string

Describes the problem in the words of the server.

Returns

string
Test cases 1

Test cases 2§

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 1

Relations§

Instantiated in 2