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

A table that DROP TABLE names more than once.

The server rejects the statement with ER_NONUNIQ_TABLE. Source: https://dev.mysql.com/doc/refman/8.4/en/drop-table.html.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Alter\Problem\RepeatedTable(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t'))))->message() // => 'Table t is named more than once.'

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe repeated name as written at its later occurrence
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 2§

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 1

Relations§

Instantiated in 1