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

An ORDER BY or GROUP BY integer that names no result column.

Reading the problem of an ordinal beyond the result columnsdoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 ORDER BY 2') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Term 2 is out of range - should be between 1 and 1.

Properties§

public int $ordinal
public int $columns

Methods§

public function __construct(public int $ordinal, public int $columns)

Parameters

$ordinalintThe integer written
$columnsintThe number of result columns
public function message(): string

Describes the range the ordinal must lie in.

Returns

string
Test cases 1

Test cases 3§

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 1

Relations§

Instantiated in 1