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

A view whose column list and query disagree in length (ER_VIEW_WRONG_LIST).

Source: https://dev.mysql.com/doc/refman/8.4/en/create-view.html.

Reading the problemdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE VIEW v (a, b) AS SELECT 1') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: View's SELECT and view's field list have different column counts (2 and 1).

Properties§

public int $listed
public int $returned

Methods§

public function __construct(public int $listed, public int $returned)

Parameters

$listedintThe number of names in the column list
$returnedintThe number of columns the query returns
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