classAmbiguousFields
final class AmbiguousFields
implements FieldLookup
uses Snapshot
Public API: explicitly declared with
@visibility public.Several output fields have the looked-up name; none is chosen.
$operation = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT 1 AS a, 2 AS a');
count($operation->lookupField('a')->fields) // => 2Properties§
public list<Field> $fieldspublic string $nameMethods§
public function __construct(public string $name, list<Field> $fields)Parameters
$name | string | The looked-up name |
$fields | list<Field> | The fields with the name, in output order; at least two |
Calls 2
- static-call Check::listOf() line 33
- class-const Field::class() line 33
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.