db: mark that column is unused/ignored

2022-01-25T23:41:45.2994844Z ----------------------------- Captured stderr call -----------------------------
2022-01-25T23:41:45.2995230Z lightningd: Never accessed column 1 in query SELECT 1  FROM offers WHERE offer_id = ?;
This commit is contained in:
niftynei 2022-01-31 13:29:31 -06:00 committed by Rusty Russell
parent ce12d2b8a9
commit 453ef7f0ce

View File

@ -4692,6 +4692,7 @@ bool wallet_offer_create(struct wallet *w,
db_query_prepared(stmt);
if (db_step(stmt)) {
db_col_ignore(stmt, "1");
tal_free(stmt);
return false;
}