classViewColumnCount
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.
(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 $listedpublic int $returnedMethods§
public function __construct(public int $listed, public int $returned)Parameters
$listed | int | The number of names in the column list |
$returned | int | The number of columns the query returns |
public function message(): stringDescribes the problem in the words of the server.
Returns
stringTest cases 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.