db: Don't switch between text and blob fields

The database will yell at you if you try.
This commit is contained in:
Christian Decker 2021-10-08 14:51:37 +02:00 committed by Rusty Russell
parent b9c602c7e4
commit c963e6b03f

View file

@ -4748,7 +4748,7 @@ static void db_bind_datastore_key(struct db_stmt *stmt,
size_t len; size_t len;
if (tal_count(key) == 1) { if (tal_count(key) == 1) {
db_bind_text(stmt, pos, key[0]); db_bind_blob(stmt, pos, (u8 *)key[0], strlen(key[0]));
return; return;
} }