From 453ef7f0ce50398df3ebad650dcab8892badc110 Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 31 Jan 2022 13:29:31 -0600 Subject: [PATCH] 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 = ?; --- wallet/wallet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wallet/wallet.c b/wallet/wallet.c index 16444bf98..fa44b869c 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -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; }