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

Function clone_temp_table

db/sqlglue.c:11752–11765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11750}
11751
11752void clone_temp_table(sqlite3_stmt *stmt, struct temptable *tbl)
11753{
11754 int rc;
11755 char *err = NULL;
11756 tmptbl_clone = tbl;
11757 while ((rc = sqlite3_step(stmt)) == SQLITE_ROW)
11758 ;
11759 tmptbl_clone = NULL;
11760 if (rc != SQLITE_DONE) {
11761 logmsg(LOGMSG_FATAL, "%s rc:%d err:%s\n", __func__, rc,
11762 err ? err : "(none)");
11763 abort();
11764 }
11765}
11766
11767int bt_hash_table(char *table, int szkb)
11768{

Callers 1

clone_temp_tablesFunction · 0.85

Calls 2

sqlite3_stepFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected