classOrdinalOutOfRange
final class OrdinalOutOfRange
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A select list position in ORDER BY or GROUP BY beyond the select list.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT 1 ORDER BY 3') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Unknown column '3' in 'order clause': the select list has 1 items.Properties§
public int $positionpublic int $itemsMethods§
public function __construct(public int $position, public int $items)Parameters
$position | int | The position written, counting from one |
$items | int | The number of select list items |
public function message(): stringDescribes the position in the words of the server.
Returns
stringTest cases 1
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.