final class CallChecks
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Reports the calls every routine, or the resolved kind of function, rejects.

Rule: PG-CALL-CHECKS-001. Whatever the routine, a positional argument cannot follow a named one and a parameter name cannot be used twice. A plain function takes no *, DISTINCT, ordering, WITHIN GROUP, FILTER or OVER. An aggregate that is not an ordered-set aggregate takes no WITHIN GROUP, and a parameterless aggregate is called with *; with OVER, it takes no DISTINCT and no ordering. A window function requires OVER and takes no WITHIN GROUP, DISTINCT, ordering or FILTER. Parameter names are compared exactly, as decoded. Source: ParseFuncOrColumn in src/backend/parser/parse_func.c of PostgreSQL 17, https://www.postgresql.org/docs/17/sql-syntax-calling-funcs.html, https://www.postgresql.org/docs/17/sql-expressions.html#SYNTAX-AGGREGATES. Termination: one pass over the arguments. Status: Implemented.

Methods§

public function misuse(Derivation $derivation, FunctionCall $call, string $kind): ?CallMisuse

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 2
Method calls 3