classShowWarnings
final class ShowWarnings
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SHOW WARNINGS: the errors, warnings and notes of the last statement of the session.
Rule: MYSQL-SHOW-WARNINGS-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-warnings.html. Status: Implemented.
$show = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SHOW WARNINGS LIMIT 1, 2');
[$show->field(2)->name?->value, $show->toString()] // => ['Message', 'SHOW WARNINGS 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 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\LegacyShowRule::session() packages/sql-semantics-mysql/src/Lowering/Utility/Show/LegacyShowRule.php:96
- new SqlSemantics\Platform\MySql\Lowering\Utility\Show\ShowRule::statement() packages/sql-semantics-mysql/src/Lowering/Utility/Show/ShowRule.php:60