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

A name whose declaration is a base table where the statement needs a view, or a view where it needs a base table.

The server refuses the statement (MYSQL-RELATION-KIND-001). Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.

Describing a base table that a view statement namesdoctest
(new \SqlSemantics\Platform\MySql\Statement\Table\Problem\WrongRelationKind(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t'), new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('shop')), \SqlSemantics\Platform\MySql\Statement\Table\Problem\KindRefusal::NotView))->message() // => 'shop.t is not VIEW.'

Properties§

public KindRefusal $refusal

Methods§

public function __construct(public QualifiedName $name, public KindRefusal $refusal)

Parameters

$nameQualifiedNameThe name as the statement wrote it
$refusalKindRefusalWhat the server reports
public function message(): string

Describes the problem.

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 2