final class ShowFunctionCode
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

SHOW FUNCTION CODE: the internal instructions of a stored function, in debug builds of the server.

Rule: MYSQL-SHOW-FUNCTIONCODE-001. The statement is available in debug builds of the server only; a release build refuses it (ER_FEATURE_DISABLED), which is reported as UtilityRule::DebugOnly. The rows are those of a debug build: Pos and Instruction, the columns the manual names, typed as the server source declares them. Stored programs are not part of a context, so the name is not resolved. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-function-code.html. Status: Implemented.

Reading the statementdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW FUNCTION CODE shop.p') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: The statement is available in debug builds of the server only

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe name with its optional database
public function deriveStatement(Derivation $derivation): void

Derives the rows.

Parameters

$derivationDerivation
Calls 6
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
Calls 4

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 2