mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +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:
parent
b9c602c7e4
commit
c963e6b03f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue