classWriteMisuse
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.
(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 LIMITProperties§
public WriteRule $ruleMethods§
public function message(): stringDescribes the broken rule in the words of the server.
Returns
stringTest 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
- new SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::update() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:68
- new SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::update() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:73
- new SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::update() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:76
- new SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::deleteMultiple() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:107
- new SqlSemantics\Platform\MySql\Rules\Dml\InsertFacts::open() packages/sql-semantics-mysql/src/Rules/Dml/InsertFacts.php:148
- new SqlSemantics\Platform\MySql\Statement\Dml\DefaultRequest::deriveScalar() packages/sql-semantics-mysql/src/Statement/Dml/DefaultRequest.php:52
- new SqlSemantics\Platform\MySql\Statement\Dml\WriteTarget::deriveRelation() packages/sql-semantics-mysql/src/Statement/Dml/WriteTarget.php:84