Browse Source

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 <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
4a06da8f78
  1. 2
      wallet/wallet.c

2
wallet/wallet.c

@ -73,7 +73,7 @@ bool wallet_update_output_status(struct wallet *w,
} else { } else {
db_exec(__func__, w->db, db_exec(__func__, w->db,
"UPDATE outputs SET status=%d WHERE " "UPDATE outputs SET status=%d WHERE "
"AND prev_out_tx = '%s' AND prev_out_index = " "prev_out_tx = '%s' AND prev_out_index = "
"%d;", "%d;",
newstatus, hextxid, outnum); newstatus, hextxid, outnum);
} }

Loading…
Cancel
Save