From 4a06da8f78883a79183a0a5f76bec1f7a878ab26 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 30 Oct 2017 10:04:26 +1030 Subject: [PATCH] wallet: fix wallet_update_output_status where oldstatus == output_state_any "near \"AND\": syntax error" This was caught by the "always keep errors for db_commit_transaction". Signed-off-by: Rusty Russell --- wallet/wallet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.c b/wallet/wallet.c index 247c3195a..032136b87 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -73,7 +73,7 @@ bool wallet_update_output_status(struct wallet *w, } else { db_exec(__func__, w->db, "UPDATE outputs SET status=%d WHERE " - "AND prev_out_tx = '%s' AND prev_out_index = " + "prev_out_tx = '%s' AND prev_out_index = " "%d;", newstatus, hextxid, outnum); }