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

Function get_sqlrow_stmt

lua/sp.c:1443–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441}
1442
1443static sqlite3_stmt *get_sqlrow_stmt(Lua L)
1444{
1445 dbstmt_t *stmt = NULL;
1446 if (lua_getmetatable(L, -1) == 0) return NULL;
1447 lua_getfield(L, -1, "__metatable");
1448 if (luabb_type(L, -1) == DBTYPES_DBSTMT) stmt = lua_touserdata(L, -1);
1449 lua_pop(L, 2);
1450 return stmt ? stmt->stmt : NULL;
1451}
1452
1453static int stmt_sql_step(Lua L, dbstmt_t *stmt)
1454{

Callers 1

luatable_emitFunction · 0.85

Calls 4

lua_getmetatableFunction · 0.85
lua_getfieldFunction · 0.85
luabb_typeFunction · 0.85
lua_touserdataFunction · 0.85

Tested by

no test coverage detected