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

A table or alias that a table list of a server administration statement names twice in one database.

The server rejects the statement with ER_NONUNIQ_TABLE while it parses the list. Source: https://dev.mysql.com/doc/refman/8.4/en/lock-tables.html, https://dev.mysql.com/doc/refman/8.4/en/analyze-table.html.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Problem\NonUniqueTable(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t')))->message() // => "Not unique table/alias: 't'."

Properties§

public Name $alias

Methods§

public function __construct(public Name $alias)

Parameters

$aliasNameThe alias, or the table name when no alias is written, at its later occurrence
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 5§

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 4

Relations§

Instantiated in 1