Project one variable's 4 columns for RETURN * */
| 4191 | |
| 4192 | /* Project one variable's 4 columns for RETURN * */ |
| 4193 | static void project_star_var(binding_t *b, const char *var, const char **vals) { |
| 4194 | cbm_edge_t *edge = binding_get_edge(b, var); |
| 4195 | if (edge) { |
| 4196 | vals[0] = edge_prop(edge, "type"); |
| 4197 | vals[SKIP_ONE] = ""; |
| 4198 | vals[PAIR_LEN] = ""; |
| 4199 | vals[CYP_TRIPLE] = ""; |
| 4200 | return; |
| 4201 | } |
| 4202 | cbm_node_t *n = binding_get(b, var); |
| 4203 | vals[0] = n && n->name ? n->name : ""; |
| 4204 | vals[SKIP_ONE] = n && n->qualified_name ? n->qualified_name : ""; |
| 4205 | vals[PAIR_LEN] = n && n->label ? n->label : ""; |
| 4206 | vals[CYP_TRIPLE] = n && n->file_path ? n->file_path : ""; |
| 4207 | } |
| 4208 | |
| 4209 | /* Project one binding row for RETURN * */ |
| 4210 | static void project_star_row(binding_t *b, const char **vars, int vc, const char **vals) { |
no test coverage detected