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

A CREATE TABLE without columns and without a query (ER_TABLE_MUST_HAVE_COLUMNS).

Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.

Reading the problemdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t ENGINE = InnoDB') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: A table must have at least 1 column.

Methods§

public function message(): string

Describes the problem in the words of the server.

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