MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / cdb2_column_name

Function cdb2_column_name

cdb2api/cdb2api.c:5157–5170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5155}
5156
5157const 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
5172int cdb2_snapshot_file(cdb2_hndl_tp *hndl, int *snapshot_file,
5173 int *snapshot_offset)

Callers 13

print_columnFunction · 0.85
append_headerMethod · 0.85
run_statementFunction · 0.85
printColFunction · 0.85
replayFunction · 0.85
printColFunction · 0.85
run_statementFunction · 0.85
clnt_run_queryFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
tclcdb2ObjCmdFunction · 0.85

Calls

no outgoing calls

Tested by 3

printColFunction · 0.68
run_statementFunction · 0.68
mainFunction · 0.68