classAliasTarget
final class AliasTarget
implements Resolution
uses Snapshot
Public API: explicitly declared with
@visibility public.A name that resolves to an output field of the same query by its alias.
The reference stays a reference: the aliased expression is not copied to the use position.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 AS x ORDER BY x');
$query->facts->scalar($query->statement->options->order[0]->expression)->resolution->field === $query->field('x') // => trueProperties§
public Field $fieldMethods§
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 4
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Rules\Expression\ColumnFacts::alias() packages/sql-semantics-postgres/src/Rules/Expression/ColumnFacts.php:95
- new SqlSemantics\Platform\PostgreSql\Statement\Query\Clause\OutputPosition::deriveScalar() packages/sql-semantics-postgres/src/Statement/Query/Clause/OutputPosition.php:72