classDuplicateColumn
final class DuplicateColumn
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A table or view that would have two columns with one name (ER_DUP_FIELDNAME).
Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a INT, a INT)') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Duplicate column name a.Properties§
public Name $columnMethods§
public function message(): stringDescribes the problem in the words of the server.
Returns
stringTest cases 1
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.