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

Derives the flow control statements of stored programs.

Rule: MYSQL-PROGRAM-FLOW-001. The expression of every IF, ELSEIF, WHEN, WHILE, UNTIL and RETURN is derived in the scope of the statement, where parameters and local variables resolve as values; the nested statements are derived in the same scope, inside a loop with the label of the loop added (MYSQL-PROGRAM-LABELS-001). LEAVE needs an enclosing block or loop with its label, ITERATE an enclosing loop (ER_SP_LILABEL_MISMATCH). RETURN outside a stored function is reported (ER_SP_BADRETURN). Terminates: nested statements are strict parts. Source: https://dev.mysql.com/doc/refman/8.4/en/flow-control-statements.html. Status: Implemented.

Methods§

public function returned(Scalar $value, Derivation $derivation, ProgramScope $scope): void

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