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

A problem the defining command reports about the attributes of CREATE AGGREGATE, OPERATOR, TYPE, COLLATION or TEXT SEARCH.

Source: https://www.postgresql.org/docs/17/sql-createoperator.html, https://www.postgresql.org/docs/17/sql-createaggregate.html.

Reading the message of an unrecognized operator attributedoctest
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE OPERATOR === (rightarg = int4, function = int4eq, colour = red)');
    [$operation->facts->diagnostics[0]->message(), $operation->facts->diagnostics[0]->warning()] // => ['operator attribute "colour" not recognized', true]

Properties§

public list<string> $subjects

Methods§

public function __construct(public AttributeProblemKind $kind, list<string> $subjects = [])

Parameters

$kindAttributeProblemKindWhat is wrong
$subjectslist<string>The names and texts the message mentions, in order
Calls 4
public function warning(): bool

Tells whether the server only warns and goes on.

Returns

bool
Test cases 1
Calls 1

Test cases 8§

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

Dedicated tests 3
Other tests reaching this symbol 5

Relations§

Instantiated in 36
Type checks 1
Type declarations 4