classFractionalNumber
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.
(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 $numberMethods§
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.