final class ColumnNames
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

Checks and writes the bare column name lists of partitioning clauses and table changes.

Rule: MYSQL-COLUMN-NAMES-001. A column name is known to be absent only when every relation visible at the position has a completely known row shape and none of them has a slot of that name; names are compared with the column name comparison of the context (MySQL column names are not case sensitive). An absent name is the diagnostic UnknownColumn; nothing is reported while a shape is open. Terminates: one pass over the names and slots. Source: https://dev.mysql.com/doc/refman/8.4/en/identifier-case-sensitivity.html. Status: Implemented.

Methods§

public function present(Name $name, Environment $scope): ?bool

Tells whether a visible relation of the scope has a column, or answers null when an open shape leaves it undecided.

Parameters

$nameName
$scopeEnvironment

Returns

?bool
Called from 1
Calls 1
public function count(RowShape $shape, Name $name, Environment $scope): int

Counts the slots of a row shape a name denotes.

Parameters

$shapeRowShape
$nameName
$scopeEnvironment

Returns

int
Called from 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 4
Method calls 4