mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 17:14:28 +01:00
db: Don't switch between text and blob fields
The database will yell at you if you try.
This commit is contained in:
committed by
Rusty Russell
parent
b9c602c7e4
commit
c963e6b03f
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user