enumKindRefusal
enum KindRefusal: string
Public API: explicitly declared with
@visibility public.Why the server refuses a statement for the kind of relation a name denotes; each case holds the problem in the words of the server.
NotView and NotBaseTable are ER_WRONG_OBJECT (1347); a view that DROP TABLE names is ER_BAD_TABLE_ERROR (1051), and one that TRUNCATE TABLE names is ER_NO_SUCH_TABLE (1146), since these statements find base tables only. Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.
\SqlSemantics\Platform\MySql\Statement\Table\Problem\KindRefusal::NotView->value // => 'is not VIEW'Cases§
case NotView = 'is not VIEW'case NotBaseTable = 'is not BASE TABLE'case UnknownTable = 'is a view: DROP TABLE reports it as an unknown table'case NoSuchTable = "is a view: TRUNCATE TABLE reports that the table doesn't exist"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 4
- class-const SqlSemantics\Platform\MySql\Rules\TableDefinition\RelationKinds::require() packages/sql-semantics-mysql/src/Rules/TableDefinition/RelationKinds.php:62
- class-const SqlSemantics\Platform\MySql\Rules\TableDefinition\RelationKinds::require() packages/sql-semantics-mysql/src/Rules/TableDefinition/RelationKinds.php:62
- class-const SqlSemantics\Platform\MySql\Statement\Alter\DropTable::deriveStatement() packages/sql-semantics-mysql/src/Statement/Alter/DropTable.php:68
- class-const SqlSemantics\Platform\MySql\Statement\Alter\TruncateTable::deriveStatement() packages/sql-semantics-mysql/src/Statement/Alter/TruncateTable.php:52
Type declarations 2
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\RelationKinds packages/sql-semantics-mysql/src/Rules/TableDefinition/RelationKinds.php:69
- type SqlSemantics\Platform\MySql\Statement\Table\Problem\WrongRelationKind packages/sql-semantics-mysql/src/Statement/Table/Problem/WrongRelationKind.php:29