classOrdinalOutOfRange
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.
(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 $ordinalpublic int $columnsMethods§
public function __construct(public int $ordinal, public int $columns)Parameters
$ordinal | int | The integer written |
$columns | int | The number of result columns |
public function message(): stringDescribes the range the ordinal must lie in.
Returns
stringTest cases 1
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.