Bind a parameter. */
| 37 | |
| 38 | /* Bind a parameter. */ |
| 39 | void test_bind_param(cdb2_hndl_tp *hndl, const char *name, int type, |
| 40 | const void *varaddr, int length) |
| 41 | { |
| 42 | int rc; |
| 43 | rc = cdb2_bind_param(hndl, name, type, varaddr, length); |
| 44 | if (rc != 0) { |
| 45 | fprintf(stderr, "error binding parameter %s (err: %s)\n", name, |
| 46 | cdb2_errstr(hndl)); |
| 47 | exit(1); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /* Bind a parameter at the specified index. */ |
| 52 | void test_bind_index(cdb2_hndl_tp *hndl, int index, int type, |
no test coverage detected