final class InvocationRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql\Lowering\Dml". Code outside that scope must not name this declaration.

Lowers DO, CALL, IMPORT TABLE and the prepared statement commands.

Rule: MYSQL-INVOCATION-LOWERING-001. Scope: do, do_stmt, call, opt_sp_cparam_list, opt_sp_cparams, sp_cparams, call_stmt, opt_paren_expr_list, import_stmt, prepare, prepare_src, execute, execute_using, execute_var_list, execute_var_ident, deallocate, deallocate_or_drop. The expressions of DO in MySQL 5.6 are select items without aliases. The parentheses of an empty argument list of CALL are noise (DmlNoise). Terminates: the parts are strict subtrees; lists are flattened by MYSQL-DML-LIST-001. Source: https://dev.mysql.com/doc/refman/8.4/en/do.html, https://dev.mysql.com/doc/refman/8.4/en/call.html, https://dev.mysql.com/doc/refman/8.4/en/import-table.html, https://dev.mysql.com/doc/refman/8.4/en/sql-prepared-statements.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function evaluation(Form $form): Evaluation

Lowers a node of do or do_stmt.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 5
public function call(Form $form): ProcedureCall
public function arguments(Node $list): list<Scalar>

Lowers the arguments of CALL: a node of opt_sp_cparam_list or opt_paren_expr_list.

Parameters

$listNode

Returns

list<Scalar>

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 4
public function import(Form $form): ImportTable

Lowers a node of import_stmt.

Parameters

$formForm

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 3
public function prepared(Form $form): Statement
public function variables(Node $using): list<UserVariable>

Lowers the variables of EXECUTE: a node of execute_using; an absent USING is empty.

Parameters

$usingNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 4

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

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 4
Method calls 4