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

A catalog command that PostgreSQL rejects because it breaks a rule of the command.

Reading the problem of a duplicated database optiondoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE DATABASE d OWNER a OWNER b') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: conflicting or redundant options

Properties§

public list<string> $subjects

Methods§

public function __construct(public CatalogMisuseRule $rule, list<string> $subjects = [])

Parameters

$ruleCatalogMisuseRuleThe broken rule
$subjectslist<string>The texts the message names, one for each `%s` of the rule
Calls 3
public function message(): string

Describes the broken rule in the words of PostgreSQL.

Returns

string
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 22