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

A field selected from a value that is not of a composite type.

Source: https://www.postgresql.org/docs/17/rowtypes.html#ROWTYPES-ACCESSING.

Reading the messagedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\Problem\NotComposite('a', 'integer'))->message() // => 'Column notation .a applied to type integer, which is not a composite type.'

Properties§

public string $field
public string $type

Methods§

public function __construct(public string $field, public string $type)

Parameters

$fieldstringThe selected field
$typestringThe type of the value
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 1