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

Function exec_procedure

lua/sp.c:7359–7374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7357}
7358
7359int exec_procedure(struct sqlthdstate *thd, struct sqlclntstate *clnt, char **err)
7360{
7361 clnt->ready_for_heartbeats = 1;
7362 int osql_max_trans = clnt->osql_max_trans;
7363 int dohsql_disable = clnt->dohsql_disable;
7364 setup_clnt_for_sp(clnt);
7365 int rc = exec_procedure_int(thd, clnt, err, 0);
7366 clnt->osql_max_trans = osql_max_trans;
7367 clnt->recover_ddlk = NULL;
7368 clnt->recover_ddlk_fail = NULL;
7369 clnt->dohsql_disable = dohsql_disable;
7370 if (clnt->sp) {
7371 reset_sp(clnt->sp);
7372 }
7373 return rc;
7374}

Callers 1

handle_stored_procFunction · 0.85

Calls 3

setup_clnt_for_spFunction · 0.85
exec_procedure_intFunction · 0.85
reset_spFunction · 0.85

Tested by

no test coverage detected