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

A routine, aggregate or operator definition, signature or option list that the server rejects.

Source: https://www.postgresql.org/docs/17/sql-createfunction.html.

Reading the message of a repeated parameter namedoctest
$problem = new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Problem\RoutineProblem(\SqlSemantics\Platform\PostgreSql\Statement\Routine\Problem\RoutineProblemKind::DuplicateParameter, 'a');
    $problem->message() // => 'parameter name "a" used more than once'

Properties§

public string $subject = ''

Methods§

public function __construct(public RoutineProblemKind $kind, public string $subject = '')

Parameters

$kindRoutineProblemKindWhat is wrong
$subjectstringThe name the message mentions, if any
public function message(): string

Describes the problem as the server does.

Returns

string
Test cases 2
Calls 1

Test cases 15§

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

Dedicated tests 2
Other tests reaching this symbol 13

Relations§

Instantiated in 14