final class CallMisuse
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A call that uses a clause the function called does not accept.

Describing a window function called without OVERdoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\CallMisuse(
        \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\CallMisuseKind::WindowWithoutOver,
        new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('rank'),
    ))->message() // => 'window function rank requires an OVER clause'

Properties§

public Name $function

Methods§

public function __construct(public CallMisuseKind $kind, public Name $function)

Parameters

$kindCallMisuseKindThe clause and the kind of function
$functionNameThe name of the function called
public function message(): string

Describes the problem as the server does.

Returns

string
Test cases 1
Calls 1

Test cases 2§

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

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type declarations 1