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

Function db_reset

lua/sp.c:4329–4344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4327}
4328
4329static int db_reset(lua_State *lua)
4330{
4331 SP sp = getsp(lua);
4332 /*
4333 if (sp->thd->stmt) {
4334 sqlite3_reset(sp->thd->stmt);
4335 sp->thd->stmt = NULL;
4336 }
4337 */
4338 sp->rc = 0;
4339 if (sp->error) {
4340 free(sp->error);
4341 sp->error = NULL;
4342 }
4343 return 0;
4344}
4345
4346static int db_get_trans(Lua L)
4347{

Callers 5

dbtable_insertFunction · 0.85
dbtable_copyfromFunction · 0.85
dbtable_whereFunction · 0.85
dbstmt_execFunction · 0.85
db_csvcopyFunction · 0.85

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected