MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_column_null_warn

Function db_column_null_warn

db/bindings.c:25–37  ·  view source on GitHub ↗

Returns true (and warns) if it's nul */

Source from the content-addressed store, hash-verified

23
24/* Returns true (and warns) if it's nul */
25static bool db_column_null_warn(struct db_stmt *stmt, const char *colname,
26 int col)
27{
28 if (!db_column_is_null(stmt, col))
29 return false;
30
31 /* FIXME: log broken? */
32#if DEVELOPER
33 db_fatal("Accessing a null column %s/%i in query %s",
34 colname, col, stmt->query->query);
35#endif /* DEVELOPER */
36 return true;
37}
38
39void db_bind_int(struct db_stmt *stmt, int pos, int val)
40{

Callers 9

db_col_intFunction · 0.85
db_col_u64Function · 0.85
db_col_bytesFunction · 0.85
db_col_blobFunction · 0.85
db_col_strdupFunction · 0.85
db_col_node_id_arrFunction · 0.85
db_col_txFunction · 0.85
db_col_psbtFunction · 0.85

Calls 2

db_column_is_nullFunction · 0.85
db_fatalFunction · 0.50

Tested by

no test coverage detected