final class RowValueUse
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Reports the places where a row value is used as a single value, or where two row widths disagree.

Rule: SQLITE-ROW-VALUE-USE-001. A row value is admitted only where SQLite compares rows: on both sides of a comparison or IS operator, in BETWEEN when the bounds are rows of the same width, as the operand of IN against elements, rows or a relation of the same width, and as the base of a CASE with WHEN values of the same width. Anywhere else a row value is misused: as an operand of any other operator, as a condition, a grouping or ordering term, or a result column. The width of a value whose type depends on missing inputs is unknown and nothing is reported for it. Terminates: a fixed number of tests per use. Source: https://sqlite.org/rowvalue.html. Status: Implemented.

Methods§

public function single(ScalarFact $fact, Derivation $derivation): ?Misuse

Reports a row value at a position that takes a single value, and answers the reported problem.

Parameters

$factScalarFact
$derivationDerivation

Returns

Test cases 2
Called from 14
Calls 4

Test cases 12§

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

Dedicated tests 12

Relations§

Instantiated in 12
Method calls 20