classBucketCountOutOfRange
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.
(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 $bucketsMethods§
public function __construct(public Numeral $buckets)Parameters
$buckets | Numeral | The bucket count as written |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.