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

Function db_column_null_warn

db/bindings.c:31–41  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

29
30/* Returns true (and warns) if it's nul */
31static bool db_column_null_warn(struct db_stmt *stmt, const char *colname,
32 int col)
33{
34 if (!db_column_is_null(stmt, col))
35 return false;
36
37 db_warn(stmt->db, "Accessing a null column %s/%i in query %s",
38 colname, col, stmt->query->query);
39
40 return true;
41}
42
43void db_bind_int(struct db_stmt *stmt, int val)
44{

Callers 7

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_txFunction · 0.85
db_col_psbtFunction · 0.85

Calls 2

db_column_is_nullFunction · 0.85
db_warnFunction · 0.85

Tested by

no test coverage detected