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

A histogram bucket count outside 1 to 1024.

The server rejects the statement with ER_DATA_OUT_OF_RANGE while it parses it. Source: https://dev.mysql.com/doc/refman/8.4/en/analyze-table.html.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Problem\BucketCountOutOfRange(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('0')))->message() // => 'Number of buckets 0 is out of range in ANALYZE TABLE: it is 1 to 1024.'

Properties§

public Numeral $buckets

Methods§

public function __construct(public Numeral $buckets)

Parameters

$bucketsNumeralThe bucket count as written
public function message(): string

Describes the problem.

Returns

string
Test cases 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 1