mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-10 09:34:22 +01:00
sql: fix crash on fresh node_announcment.
Missing quotes when we delete the old one! Reported-by: Alex Myers Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Alex Myers
parent
855980641c
commit
f3baa3e510
@@ -850,7 +850,7 @@ static void delete_node_from_db(struct command *cmd,
|
||||
err = sqlite3_exec(db,
|
||||
tal_fmt(tmpctx,
|
||||
"DELETE FROM nodes"
|
||||
" WHERE nodeid = %s",
|
||||
" WHERE nodeid = '%s'",
|
||||
node_id_to_hexstr(tmpctx, id)),
|
||||
NULL, NULL, &errmsg);
|
||||
if (err != SQLITE_OK)
|
||||
|
||||
Reference in New Issue
Block a user