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

Tells which names MySQL accepts as the name of a table or view column.

Rule: MYSQL-COLUMN-NAME-001. A column name is not empty, does not end in a space character, and has at most 64 characters; the server reads the name up to its first NUL byte (check_column_name). Source: sql/table.cc of each release, https://dev.mysql.com/doc/refman/8.4/en/identifier-length.html, https://dev.mysql.com/doc/refman/8.4/en/identifiers.html. Status: Implemented.

Methods§

public function length(string $name): int

Answers the number of characters of a name in the system character set, or of bytes when it is not well formed.

Parameters

$namestring

Returns

int
Test cases 1
Called from 2
Calls 3

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 4
Method calls 4