final class Misuse
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A query MySQL rejects because it breaks a rule of the language.

Reading the problem of a star without inputdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT *') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: No tables used

Properties§

public MisuseRule $rule

Methods§

public function __construct(public MisuseRule $rule)

Parameters

$ruleMisuseRuleThe broken rule
public function message(): string

Describes the broken rule in the words of the server.

Returns

string

Test cases 12§

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 11

Relations§

Instantiated in 12