classRowArity
final class RowArity
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A row of the wrong number of fields or columns where a construct needs a fixed number.
Source: https://www.postgresql.org/docs/17/sql-expressions.html#SQL-SYNTAX-SCALAR-SUBQUERIES.
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\Problem\RowArity('an ARRAY subquery', 1, 2))->message() // => 'an ARRAY subquery needs 1 column(s) but has 2.'Properties§
public string $constructpublic int $expectedpublic int $actualMethods§
public function __construct(public string $construct, public int $expected, public int $actual)Parameters
$construct | string | The construct, such as 'a scalar subquery' |
$expected | int | The number of fields it needs |
$actual | int | The number written |
public function message(): stringTest cases 5§
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 4
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Rules\Expression\Typing\Sublinks::arity() packages/sql-semantics-postgres/src/Rules/Expression/Typing/Sublinks.php:156
- new SqlSemantics\Platform\PostgreSql\Statement\Expression\Predicate\Overlaps::deriveScalar() packages/sql-semantics-postgres/src/Statement/Expression/Predicate/Overlaps.php:56