| 5139 | } |
| 5140 | |
| 5141 | int 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 | |
| 5157 | const char *cdb2_column_name(cdb2_hndl_tp *hndl, int col) |
| 5158 | { |
no outgoing calls