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

A decimal or floating number where the server accepts only an integer.

The grammar reads it through dec_num_error, whose action rejects the statement with ER_ONLY_INTEGERS_ALLOWED. Source: https://dev.mysql.com/doc/refman/8.4/en/number-literals.html.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Problem\FractionalNumber(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('1.5')))->message() // => 'Only integers are allowed, not 1.5 (ER_ONLY_INTEGERS_ALLOWED).'

Properties§

public Numeral $number

Methods§

public function __construct(public Numeral $number)

Parameters

$numberNumeralThe number as written
public function message(): string

Describes the problem.

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 1