final class ProcedureAnalyse
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The PROCEDURE ANALYSE (max_elements, max_memory) clause of the 5.x grammars.

It asks the server to return a description of the result columns instead of the rows; the arguments are optional unsigned integers. The 8.0 server removed it. Source: https://dev.mysql.com/doc/refman/5.7/en/procedure-analyse.html.

Reading the argumentsdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics('mysql-5.7.44'))->analyze('SELECT a FROM t PROCEDURE ANALYSE(10, 2000)');
    count($query->statement->procedure->arguments) // => 2
Refusing a third argumentdoctest
$one = new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('1');
    new \SqlSemantics\Platform\MySql\Statement\Query\Clause\ProcedureAnalyse([$one, new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('2'), new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('3')]) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\InvalidConstruction

Properties§

public list<NumberLiteral> $arguments

Methods§

public function __construct(list<NumberLiteral> $arguments = [])

Parameters

$argumentslist<NumberLiteral>At most two unsigned integers
Calls 5
public function render(Output $out): void

Writes the clause.

Parameters

$outOutput
Calls 1

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type declarations 3