diff options
author | Eric Wong <e@yhbt.net> | 2020-07-26 19:43:06 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-26 19:52:17 +0000 |
commit | cb3959c47f4443855cc42022528e4a859a93e7f7 (patch) | |
tree | 70e4a2af5d4536bd50fa641270c7fa0e3046b37c /lib/PublicInbox/OverIdx.pm | |
parent | 5a32c9646edfb610679d9d29d182c263ca819b08 (diff) | |
download | public-inbox-cb3959c47f4443855cc42022528e4a859a93e7f7.tar.gz |
We still need to use SQL_BLOB to ensure existing versions of public-inbox can read over.sqlite3 because they're still using {sqlite_unicode}. This partially reverts commit e9fc1290ead44e06d20ff58e0a6acb5306d4fbe2. Fixes: e9fc1290ead44e06 ("over: unset sqlite_unicode attribute")
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
-rw-r--r-- | lib/PublicInbox/OverIdx.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm index fcb45079..5821c562 100644 --- a/lib/PublicInbox/OverIdx.pm +++ b/lib/PublicInbox/OverIdx.pm @@ -12,7 +12,7 @@ use strict; use warnings; use base qw(PublicInbox::Over); use IO::Handle; -use DBI; +use DBI qw(:sql_types); # SQL_BLOB use PublicInbox::MID qw/id_compress mids_for_index references/; use PublicInbox::Smsg qw(subject_normalized); use Compress::Zlib qw(compress); @@ -337,7 +337,7 @@ VALUES (?,?,?,?,?,?) my $n = 0; my @v = ($num, $tid, $sid, $ts, $ds); foreach (@v) { $sth->bind_param(++$n, $_) } - $sth->bind_param(++$n, $ddd); + $sth->bind_param(++$n, $ddd, SQL_BLOB); $sth->execute; $sth = $dbh->prepare_cached(<<''); INSERT INTO id2num (id, num) VALUES (?,?) |