classNoSuchParameter
final class NoSuchParameter
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A parameter reference whose number no statement can bind.
Parameters are numbered from 1; the server reports $0 and numbers beyond its limit as undefined parameters. Source: https://www.postgresql.org/docs/17/sql-expressions.html#SQL-EXPRESSIONS-PARAMETERS-POSITIONAL.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT $0') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: There is no parameter $0.Properties§
public string $markerMethods§
public function __construct(public string $marker)Parameters
$marker | string | The parameter marker as the server reads it |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Statement\Literal\PositionalParameter::deriveScalar() packages/sql-semantics-postgres/src/Statement/Literal/PositionalParameter.php:84
- new SqlSemantics\Platform\PostgreSql\Statement\Literal\PositionalParameter::deriveScalar() packages/sql-semantics-postgres/src/Statement/Literal/PositionalParameter.php:100