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

Derives the statements that define stored programs: routines, triggers and events.

Rule: MYSQL-ROUTINE-001, MYSQL-TRIGGER-001, MYSQL-EVENT-001. A routine body is derived in a scope whose outermost level holds the parameters as one row (MYSQL-ROUTINE-PARAMETERS-001); a parameter name written twice is reported (ER_SP_DUP_PARAM) and keeps its first meaning. A stored function whose SQL body holds no RETURN is reported (ER_SP_NORETURN). A trigger body is derived in a scope where NEW and OLD denote the row of the trigger table (MYSQL-TRIGGER-ROWS-001) and SET assigns to the NEW row by MYSQL-TRIGGER-ASSIGNMENT-001; a trigger on a declared view is refused (MYSQL-RELATION-KIND-001). The expressions of an event schedule see no table and no variable; the event body is derived in an empty scope. None of the statements declares anything or returns rows. The statements a stored program may not contain are reported by MYSQL-PROGRAM-RESTRICTIONS-001. Terminates: bodies are strict parts. Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html, https://dev.mysql.com/doc/refman/8.4/en/create-trigger.html, https://dev.mysql.com/doc/refman/8.4/en/create-event.html. Status: Implemented.

Methods§

Test cases 3§

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

Dedicated tests 3

Relations§

Instantiated in 7
Method calls 7