From c963e6b03f28627602b2b1f97b845812a7bf8818 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 8 Oct 2021 14:51:37 +0200 Subject: [PATCH] db: Don't switch between text and blob fields The database will yell at you if you try. --- wallet/wallet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/wallet.c b/wallet/wallet.c index 5bd20a7bd..631ad4573 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -4748,7 +4748,7 @@ static void db_bind_datastore_key(struct db_stmt *stmt, size_t len; if (tal_count(key) == 1) { - db_bind_text(stmt, pos, key[0]); + db_bind_blob(stmt, pos, (u8 *)key[0], strlen(key[0])); return; }