classObjectProblem
final class ObjectProblem
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A generic object command that the server rejects, such as a COMMENT ON COLUMN with an unqualified column.
Source: https://www.postgresql.org/docs/17/sql-comment.html.
(new \SqlSemantics\Platform\PostgreSql\Statement\Object\Problem\ObjectProblem(\SqlSemantics\Platform\PostgreSql\Statement\Object\Problem\ObjectProblemKind::ConcurrentCascade))->message() // => 'DROP INDEX CONCURRENTLY does not support CASCADE'Properties§
public ObjectProblemKind $kindpublic string $subject = ''Methods§
public function __construct(public ObjectProblemKind $kind, public string $subject = '')Parameters
$kind | ObjectProblemKind | What is wrong |
$subject | string | The name the message mentions, if any |
public function message(): stringDescribes the problem as the server does.
Returns
stringTest cases 1
Calls 1
- function-call
sprintfline 36
Test cases 4§
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 3
Relations§
Instantiated in 5
- new SqlSemantics\Platform\PostgreSql\Rules\Routine\RelationTargets::column() packages/sql-semantics-postgres/src/Rules/Routine/RelationTargets.php:123
- new SqlSemantics\Platform\PostgreSql\Rules\Routine\RelationTargets::renamed() packages/sql-semantics-postgres/src/Rules/Routine/RelationTargets.php:150
- new SqlSemantics\Platform\PostgreSql\Statement\Object\Drop::deriveStatement() packages/sql-semantics-postgres/src/Statement/Object/Drop.php:78
- new SqlSemantics\Platform\PostgreSql\Statement\Object\Drop::deriveStatement() packages/sql-semantics-postgres/src/Statement/Object/Drop.php:81
- new SqlSemantics\Platform\PostgreSql\Statement\Operator\OperatorFamilyAddition::deriveStatement() packages/sql-semantics-postgres/src/Statement/Operator/OperatorFamilyAddition.php:58