classTargetNames
final class TargetNames
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.
Names the output column of a select-list item that has no alias.
Rule: PG-TARGET-NAME-001. The expression names the column when its form fixes a name (a column reference after its column, a function call after the function, a cast after its type, and so on); every other column is named ?column?. The first output column of a query has such a name only when the query's first item is an expression; a star leaves it open. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-SELECT-LIST. Status: Implemented.
Methods§
Answers the name an unaliased expression gives its output column.
Parameters
$expression | Scalar |
Returns
Test cases 1
Called from 1
Calls 2
- method-call Scalar::outputName() line 33
- new Name line 33
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Relations§
Instantiated in 2
Method calls 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Query\ExpressionTarget::name() packages/sql-semantics-postgres/src/Statement/Query/ExpressionTarget.php:60
- method-call SqlSemantics\Platform\PostgreSql\Statement\Query\Select::outputName() packages/sql-semantics-postgres/src/Statement/Query/Select.php:119