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

RESIGNAL: passes on, or changes and passes on, the condition a handler is handling.

The statement is valid on its own and inside a stored program, where a condition name and the names in the item values are resolved in the scope of the statement. The facts follow MYSQL-PROGRAM-CONDITIONS-001. Source: https://dev.mysql.com/doc/refman/8.4/en/resignal.html.

Reading the statementdoctest
$signal = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('RESIGNAL SET MYSQL_ERRNO = 5');
    [$signal->statement->condition, $signal->toString()] // => [null, 'RESIGNAL SET MYSQL_ERRNO = 5']

Properties§

public list<SignalItem> $items
public ConditionName|SqlState|null $condition

Methods§

public function __construct(
    public ConditionName|SqlState|null $condition,
    list<SignalItem> $items = [],
)

Parameters

$conditionConditionName|SqlState|nullThe condition passed on instead of the handled one, when written
$itemslist<SignalItem>The condition information items of the SET clause; empty without SET
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives the statement outside a stored program, where no condition name and no local variable is in scope.

Parameters

$derivationDerivation
Calls 3
public function deriveProgram(Derivation $derivation, ProgramScope $scope): void
public function render(Output $out): void

Writes the statement.

Parameters

$outOutput
Calls 1

Test cases 8§

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

Dedicated tests 4
Other tests reaching this symbol 4

Relations§

Instantiated in 1
Type declarations 1