MCPcopy Create free account
hub / github.com/apache/cloudberry / FigureColname

Function FigureColname

src/backend/parser/parse_target.c:1696–1706  ·  view source on GitHub ↗

* FigureColname - * if the name of the resulting column is not specified in the target * list, we have to guess a suitable name. The SQL spec provides some * guidance, but not much... * * Note that the argument is the *untransformed* parse tree for the target * item. This is a shade easier to work with than the transformed tree. */

Source from the content-addressed store, hash-verified

1694 * item. This is a shade easier to work with than the transformed tree.
1695 */
1696char *
1697FigureColname(Node *node)
1698{
1699 char *name = NULL;
1700
1701 (void) FigureColnameInternal(node, &name);
1702 if (name != NULL)
1703 return name;
1704 /* default result if we can't guess anything */
1705 return "?column?";
1706}
1707
1708/*
1709 * FigureIndexColname -

Callers 3

transformXmlExprFunction · 0.85
transformRangeFunctionFunction · 0.85
transformTargetEntryFunction · 0.85

Calls 1

FigureColnameInternalFunction · 0.85

Tested by

no test coverage detected