| 5155 | } |
| 5156 | |
| 5157 | const char *cdb2_column_name(cdb2_hndl_tp *hndl, int col) |
| 5158 | { |
| 5159 | const char *ret; |
| 5160 | if (hndl->fdb_hndl) |
| 5161 | hndl = hndl->fdb_hndl; |
| 5162 | if ((hndl->firstresponse == NULL) || (hndl->firstresponse->value == NULL)) |
| 5163 | ret = NULL; |
| 5164 | else |
| 5165 | ret = (const char *)hndl->firstresponse->value[col]->value.data; |
| 5166 | if (log_calls) |
| 5167 | fprintf(stderr, "%p> cdb2_column_name(%p, %d) = \"%s\"\n", |
| 5168 | (void *)pthread_self(), hndl, col, ret == NULL ? "NULL" : ret); |
| 5169 | return ret; |
| 5170 | } |
| 5171 | |
| 5172 | int cdb2_snapshot_file(cdb2_hndl_tp *hndl, int *snapshot_file, |
| 5173 | int *snapshot_offset) |
no outgoing calls