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

Function cdb2_numcolumns

cdb2api/cdb2api.c:5141–5155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5139}
5140
5141int cdb2_numcolumns(cdb2_hndl_tp *hndl)
5142{
5143 int rc;
5144 if (hndl->fdb_hndl)
5145 hndl = hndl->fdb_hndl;
5146 if (hndl->firstresponse == NULL)
5147 rc = 0;
5148 else
5149 rc = hndl->firstresponse->n_value;
5150 if (log_calls) {
5151 fprintf(stderr, "%p> cdb2_numcolumns(%p) = %d\n",
5152 (void *)pthread_self(), hndl, rc);
5153 }
5154 return rc;
5155}
5156
5157const char *cdb2_column_name(cdb2_hndl_tp *hndl, int col)
5158{

Callers 15

db_generatorFunction · 0.85
append_headerMethod · 0.85
run_statementFunction · 0.85
replayFunction · 0.85
mainFunction · 0.85
runFunction · 0.85
runsqlFunction · 0.85
runtagFunction · 0.85
runtagFunction · 0.85
test_pass_array_to_spFunction · 0.85
runsqlFunction · 0.85
run_ins_spFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_pass_array_to_spFunction · 0.68
run_statementFunction · 0.68
mainFunction · 0.68