classShowErrors
final class ShowErrors
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW ERRORS: the errors of the last statement of the session.
Rule: MYSQL-SHOW-ERRORS-001. LIMIT selects rows as in SELECT; its operands are derived at a position that sees no relation. 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.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW ERRORS LIMIT 1, 2');
[$show->field(2)->name?->value, $show->toString()] // => ['Message', 'SHOW ERRORS LIMIT 1, 2']Properties§
public ?Limit $limit = nullMethods§
public function deriveStatement(Derivation $derivation): voidDerives the rows.
Parameters
$derivation | Derivation |
Calls 4
- new ShowFacts line 45
- method-call ShowFacts::limit() line 46
- method-call ShowFacts::rows() line 47
- class-const Report::Diagnostics() line 47
public function render(Output $out): voidTest 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
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyShowRule::session() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyShowRule.php:97
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:62