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

Two column counts that SQLite requires to agree and that differ.

Reading the counts of an INSERT that supplies too few valuesdoctest
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER, b TEXT)');
    $semantics->analyze('INSERT INTO t VALUES (1)', [$table]) // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: 1 values for 2 columns.

Properties§

public ArityRule $rule
public int $expected
public int $actual

Methods§

public function __construct(public ArityRule $rule, public int $expected, public int $actual)

Parameters

$ruleArityRuleThe place where the counts must agree
$expectedintThe count the place requires
$actualintThe count the statement supplies

Test cases 20§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 18

Relations§

Instantiated in 9