Resolve the alias or compute a default name for a WITH/RETURN item */
| 3800 | |
| 3801 | /* Resolve the alias or compute a default name for a WITH/RETURN item */ |
| 3802 | static const char *resolve_item_alias(const cbm_return_item_t *item, char *name_buf, |
| 3803 | size_t buf_sz) { |
| 3804 | if (item->alias) { |
| 3805 | return item->alias; |
| 3806 | } |
| 3807 | if (item->property) { |
| 3808 | snprintf(name_buf, buf_sz, "%s.%s", item->variable, item->property); |
| 3809 | } else { |
| 3810 | snprintf(name_buf, buf_sz, "%s", item->variable); |
| 3811 | } |
| 3812 | return name_buf; |
| 3813 | } |
| 3814 | |
| 3815 | /* ── WITH clause: project bindings through aggregation or rename ── */ |
| 3816 |
no outgoing calls
no test coverage detected