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

Function test_bind_param

tests/tools/cdb2bind.c:39–49  ·  view source on GitHub ↗

Bind a parameter. */

Source from the content-addressed store, hash-verified

37
38/* Bind a parameter. */
39void 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. */
52void test_bind_index(cdb2_hndl_tp *hndl, int index, int type,

Callers 4

test_01Function · 0.85
test_02Function · 0.85
test_03Function · 0.85
test_04Function · 0.85

Calls 3

cdb2_bind_paramFunction · 0.85
cdb2_errstrFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected