classDeallocate
final class Deallocate
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.DEALLOCATE PREPARE (or its synonym DROP PREPARE): releases a prepared statement.
Rule: MYSQL-DEALLOCATE-001. The prepared statement is a session object; the statement derives nothing and returns no rows. Terminates: no child. Source: https://dev.mysql.com/doc/refman/8.4/en/deallocate-prepare.html. Status: Implemented.
$deallocate = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('DROP PREPARE stmt');
[$deallocate->statement->name->value, $deallocate->toString()] // => ['stmt', 'DEALLOCATE PREPARE stmt']Properties§
public Name $nameMethods§
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement holds no expression and returns no rows.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the statement.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 49
- class-const NameUse::Label() line 49
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DeallocateTestcalls