]> Sergey Matveev's repositories - btrtrc.git/commit
sqlite storage: Force data to be used as a blob
authorMatt Joiner <anacrolix@gmail.com>
Thu, 29 Oct 2020 23:47:50 +0000 (10:47 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 29 Oct 2020 23:47:50 +0000 (10:47 +1100)
commitfc039262d9f19014fd3a788718011ed6a32f804d
tree2a41af2447a4d6f07d032c8131af8e3d908d7d21
parent6f619c39cb000843906cb4f78b10c09215cb3b6e
sqlite storage: Force data to be used as a blob

There's a bug in crawshaw.io/sqlite, and some forks where inserting []byte results in a text type instead of blob. To ensure things work correctly, we coerce data to blob wherever we can. See https://github.com/crawshaw/sqlite/issues/94 and the fork that fixes it.
storage/sqlite/sqlite-storage.go