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

A field a composite value does not have.

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

Reading the messagedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\Problem\MissingField('f3', 'record'))->message() // => 'Column f3 not found in data type record.'

Properties§

public string $field
public string $type

Methods§

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

Parameters

$fieldstringThe selected field
$typestringThe composite type
public function message(): string

Describes the problem.

Returns

string
Test cases 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 1