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

SHOW COUNT(*) ERRORS: the number of errors of the last statement of the session.

Rule: MYSQL-SHOW-ERRORCOUNT-001. The server reads it as SELECT @@session.error_count, which names its one column. The columns are those of the layout of MYSQL-SHOW-ROWS-001. Terminates: a fixed layout. Source: https://dev.mysql.com/doc/refman/8.4/en/show-errors.html. Status: Implemented.

Reading the statementdoctest
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW COUNT(*) ERRORS');
    [$show->field(0)->name?->value, $show->toString()] // => ['@@session.error_count', 'SHOW COUNT(*) ERRORS']

Methods§

public function deriveStatement(Derivation $derivation): void

Derives the rows.

Parameters

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

Writes the statement.

Parameters

$outOutput
Calls 1

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