MCPcopy Create free account
hub / github.com/Shannon-Data/ShannonBase / handle_error

Function handle_error

plugin/test_service_sql_api/test_sql_lock.cc:503–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503static void handle_error(void *ctx) {
504 char buffer[STRING_BUFFER_SIZE];
505 struct st_plugin_ctx *pctx = (struct st_plugin_ctx *)ctx;
506
507 /* handle_error */
508 if (pctx->sql_errno) {
509 WRITE_VAL("error: %d\n", pctx->sql_errno);
510 WRITE_VAL("error msg: %s\n", pctx->err_msg);
511 }
512}
513
514static void exec_test_cmd(MYSQL_SESSION session, const char *test_cmd,
515 void *p [[maybe_unused]], struct st_plugin_ctx *ctx) {

Callers 3

exec_test_cmdFunction · 0.70
receive_responseMethod · 0.50
handle_errorMethod · 0.50

Calls 1

WRITE_VALFunction · 0.70

Tested by

no test coverage detected