]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
sqlite: use `BLOB' column type instead of `VARBINARY'
authorEric Wong <e@80x24.org>
Wed, 4 Dec 2024 19:39:13 +0000 (19:39 +0000)
committerEric Wong <e@80x24.org>
Fri, 6 Dec 2024 20:07:18 +0000 (20:07 +0000)
commit90d80eed87923bd8b9ec2e1b04e0235b182e5ea7
tree552b06360d5b7a39f7e412d71b827d044158c994
parentaf2a244ea235b2832241289a2b0036eb20c24962
sqlite: use `BLOB' column type instead of `VARBINARY'

`VARBINARY' isn't actually a documented type for SQLite but
rather the result of MySQL infecting my mind decades ago.
`BLOB' gives it the proper affinity and probably makes it easier
for 3rd-party and one-off scripts to deal with such columns and
should also make things more familiar to existing users.
Surprisingly, this appears to have no functional change with
forward or backwards compatibility since we ->bind_param binary
data with SQL_BLOB on INSERTs anyways to prevent the flexible
typing of SQLite from trying to guess types for us.
lib/PublicInbox/LeiMailSync.pm
lib/PublicInbox/OverIdx.pm
lib/PublicInbox/POP3D.pm
lib/PublicInbox/SharedKV.pm