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

A data-modifying, COPY, prepared-statement or cursor command that PostgreSQL rejects because it breaks a rule of the language.

Reading the problem of a column written twicedoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('INSERT INTO t (a, a) VALUES (1, 2)') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: column "a" specified more than once
Refusing a message without its subjectsdoctest
new \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Problem\ManipulationMisuse(\SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Problem\ManipulationMisuseRule::RepeatedInsertColumn) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\InvalidConstruction

Properties§

public list<string> $subjects

Methods§

public function __construct(public ManipulationMisuseRule $rule, string ...$subjects)

Parameters

$ruleManipulationMisuseRuleThe broken rule
$subjectsstringThe subjects the message names, one per `%s`
Calls 4
public function message(): string

Describes the broken rule in the words of PostgreSQL.

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 29