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

Checks the numbers of account statements against the ranges the server's grammar actions enforce.

Rule: MYSQL-ACCOUNT-NUMBER-001. A numeral is an integer when it is written with digits only or as a hexadecimal literal; its value is computed exactly in decimal digits, without a PHP integer or float. A decimal or floating number at an integer position (real_ulong_num through dec_num_error) is NumberOutOfRange with ER_ONLY_INTEGERS_ALLOWED; an integer outside the range of its option is NumberOutOfRange with ER_WRONG_VALUE. Precision: exact. Terminates: one pass over the digits. Source: https://dev.mysql.com/doc/refman/8.4/en/create-user.html#create-user-password-management, https://dev.mysql.com/doc/refman/8.4/en/number-literals.html. Status: Implemented.

Methods§

public function value(Numeral $number): ?string

Answers the decimal digits of an integer numeral without leading zeros, or null for a decimal or floating number.

Parameters

$numberNumeral

Returns

?string
Test cases 1
Called from 2
Calls 7
public function range(
    Derivation $derivation,
    Numeral $number,
    string $option,
    string $minimum,
    ?string $maximum,
): void

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 7
Method calls 8