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

Recognises the integer constants that SQLite reads as result column positions in ORDER BY and GROUP BY.

Rule: SQLITE-ORDINAL-001. After any COLLATE operators and parentheses around it, a term is an integer constant when it is an integer literal that fits 32 bits, or such a constant under a unary plus or minus (and parentheses). Such a term selects the result column at that position and is not evaluated as an expression. Terminates: every step removes one operator of a finite expression. Source: https://sqlite.org/lang_select.html#the_order_by_clause. Status: Implemented.

Methods§

public function value(Scalar $term): ?int

Answers the integer a term denotes as a result column position, or null when the term is an ordinary expression.

Parameters

$termScalar

Returns

?int
Test cases 4
Called from 6
Calls 6

Test cases 4§

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

Dedicated tests 4

Relations§

Instantiated in 6
Method calls 6