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

Function reset_stmt

lua/sp.c:2667–2676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2665}
2666
2667static void reset_stmt(SP sp, dbstmt_t *dbstmt)
2668{
2669 if (dbstmt->rec) { // prepared stmt
2670 dbstmt->fetched = 0;
2671 dbstmt->initial = 0;
2672 sqlite3_reset(dbstmt->stmt);
2673 } else {
2674 donate_stmt(sp, dbstmt);
2675 }
2676}
2677
2678static void reset_stmts(SP sp)
2679{

Callers 2

reset_stmtsFunction · 0.85
dbstmt_emitFunction · 0.85

Calls 2

sqlite3_resetFunction · 0.85
donate_stmtFunction · 0.85

Tested by

no test coverage detected