classNonUniqueTable
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.
(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 $aliasMethods§
public function __construct(public Name $alias)Parameters
$alias | Name | The alias, or the table name when no alias is written, at its later occurrence |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.