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

Derives the statements of a stored program at their position.

Rule: MYSQL-PROGRAM-BODY-001. A statement of the stored program language is derived in the scope of its position. Any other SQL statement is first checked against the restrictions of the program kind (MYSQL-PROGRAM-RESTRICTIONS-001) and, in a trigger, a SET statement against MYSQL-TRIGGER-ASSIGNMENT-001. A query is then derived as a nested query whose enclosing scope holds the parameters and local variables, so it returns no rows of the statement that defines the program; any other statement as an inspected request read at the environment of the position, so it sees the same parameters and variables: its parts receive their facts and its diagnostics are kept, while it declares nothing and returns nothing. Limit: a nested statement finds a column of its own tables before a variable of the same name, where the server prefers the variable; that needs a resolution order the core does not offer. An external routine body holds no SQL and derives nothing. Terminates: one pass over the list; nested statements are strict parts. Source: https://dev.mysql.com/doc/refman/8.4/en/local-variable-scope.html, https://dev.mysql.com/doc/refman/8.4/en/stored-program-restrictions.html. Status: Implemented.

Methods§

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