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

Function dbstmt_free

lua/sp.c:3341–3352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3339}
3340
3341static int dbstmt_free(Lua L)
3342{
3343 dbstmt_t *stmt = lua_touserdata(L, -1);
3344 SP sp = getsp(L);
3345
3346 /* Compute and add fingerprint for this statement in case it wasn't
3347 done already. */
3348 lua_end_step(sp->clnt, sp, stmt->stmt);
3349
3350 donate_stmt(sp, stmt);
3351 return 0;
3352}
3353
3354static int dbstmt_bind(Lua L)
3355{

Callers

nothing calls this directly

Calls 3

lua_touserdataFunction · 0.85
lua_end_stepFunction · 0.85
donate_stmtFunction · 0.85

Tested by

no test coverage detected