enumWriteRule
enum WriteRule: string
Public API: explicitly declared with
@visibility public.The rules of MySQL a grammatical data manipulation statement can break without naming a missing object.
Each case holds the message of the server error it corresponds to. Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.
$values = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('VALUES ROW(DEFAULT)');
$values->facts->diagnostics[0]->rule // => \SqlSemantics\Platform\MySql\Statement\Dml\Problem\WriteRule::DefaultOutsideInsertCases§
case DefaultOutsideInsert = 'A VALUES clause cannot use DEFAULT values, unless used as a source in an INSER…case OrderedMultipleUpdate = 'Incorrect usage of UPDATE and ORDER BY'case LimitedMultipleUpdate = 'Incorrect usage of UPDATE and LIMIT'case WildcardColumn = "Unknown column '*' in 'field list'"case CommonTableTarget = 'The target table is a common table expression, which is not updatable'case NonUpdatableTarget = 'The target table is a derived table, a table function or a common table expres…Test cases 4§
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 3
Relations§
Constant reads 7
- class-const SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::update() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:68
- class-const SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::update() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:73
- class-const SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::update() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:76
- class-const SqlSemantics\Platform\MySql\Rules\Dml\ChangeFacts::deleteMultiple() packages/sql-semantics-mysql/src/Rules/Dml/ChangeFacts.php:107
- class-const SqlSemantics\Platform\MySql\Rules\Dml\InsertFacts::open() packages/sql-semantics-mysql/src/Rules/Dml/InsertFacts.php:148
- class-const SqlSemantics\Platform\MySql\Statement\Dml\DefaultRequest::deriveScalar() packages/sql-semantics-mysql/src/Statement/Dml/DefaultRequest.php:52
- class-const SqlSemantics\Platform\MySql\Statement\Dml\WriteTarget::deriveRelation() packages/sql-semantics-mysql/src/Statement/Dml/WriteTarget.php:84