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

A data manipulation statement MySQL rejects because it breaks a rule of the language.

Reading the problem of a multiple-table UPDATE with LIMITdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('UPDATE t, u SET t.a = 1 LIMIT 1') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Incorrect usage of UPDATE and LIMIT

Properties§

public WriteRule $rule

Methods§

public function __construct(public WriteRule $rule)

Parameters

$ruleWriteRuleThe broken rule
public function message(): string

Describes the broken rule in the words of the server.

Returns

string
Test cases 1

Test cases 3§

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 2

Relations§

Instantiated in 7