classPositionOutOfRange
final class PositionOutOfRange
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.An output column position that the select list does not have.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 ORDER BY 2') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: ORDER BY position 2 is not in select listProperties§
public OrderingClause $clausepublic string $positionMethods§
public function __construct(public OrderingClause $clause, public string $position)Parameters
$clause | OrderingClause | The clause the position is written in |
$position | string | The position as an exact decimal integer |
public function message(): stringDescribes the problem in the words of PostgreSQL.
Returns
stringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PositionOutOfRangeTestcalls