classAggregateChecks
final class AggregateChecks
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.
Reports aggregate argument lists the server rejects while parsing.
Rule: PG-AGGREGATE-ARGS-001. An aggregate argument is an input: OUT, INOUT and IN OUT are reported. When the direct arguments of an ordered-set aggregate end with a VARIADIC argument, the aggregated arguments must be exactly one VARIADIC argument of the same type; a different count or mode, or two known different types, are reported. Terminates: one pass. Source: https://www.postgresql.org/docs/17/sql-createaggregate.html, aggr_arg and makeOrderedSetArgs in src/backend/parser/gram.y of PostgreSQL 17. Status: Implemented.
Methods§
public function arguments(AggregateArguments $arguments, Derivation $derivation): voidReports the problems of an aggregate argument list.
Parameters
$arguments | AggregateArguments | |
$derivation | Derivation |
Called from 1
Calls 6
- method-call Derivation::report() line 36
- new RoutineProblem line 36
- class-const RoutineProblemKind::AggregateOutput() line 36
- function-call
countline 39 - class-const ParameterMode::Variadic() line 40
- class-const RoutineProblemKind::OrderedSetVariadic() line 48
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
AggregateChecksTestcalls