* 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. */
| 1694 | * item. This is a shade easier to work with than the transformed tree. |
| 1695 | */ |
| 1696 | char * |
| 1697 | FigureColname(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 - |
no test coverage detected