Project one variable's 4 columns for RETURN * */
| 5059 | |
| 5060 | /* Project one variable's 4 columns for RETURN * */ |
| 5061 | static void project_star_var(binding_t *b, const char *var, const char **vals) { |
| 5062 | cbm_edge_t *edge = binding_get_edge(b, var); |
| 5063 | if (edge) { |
| 5064 | vals[0] = edge_prop(edge, "type"); |
| 5065 | vals[SKIP_ONE] = ""; |
| 5066 | vals[PAIR_LEN] = ""; |
| 5067 | vals[CYP_TRIPLE] = ""; |
| 5068 | return; |
| 5069 | } |
| 5070 | cbm_node_t *n = binding_get(b, var); |
| 5071 | vals[0] = n && n->name ? n->name : ""; |
| 5072 | vals[SKIP_ONE] = n && n->qualified_name ? n->qualified_name : ""; |
| 5073 | vals[PAIR_LEN] = n && n->label ? n->label : ""; |
| 5074 | vals[CYP_TRIPLE] = n && n->file_path ? n->file_path : ""; |
| 5075 | } |
| 5076 | |
| 5077 | /* Project one binding row for RETURN * */ |
| 5078 | static void project_star_row(binding_t *b, const char **vars, int vc, const char **vals) { |
no test coverage detected