X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=index_DBI_cache.pm;h=3c43bc73725314c99092d2204ee190ede52e77db;hb=46c4d4858331cf5f4e4bb0194123db6c0ce14b6c;hp=43a1b2722629cdf8bbbdf217ea1d9b6270247822;hpb=be94d2448c1166f2be3745241fee52d88e94504f;p=webpac diff --git a/index_DBI_cache.pm b/index_DBI_cache.pm index 43a1b27..3c43bc7 100644 --- a/index_DBI_cache.pm +++ b/index_DBI_cache.pm @@ -51,6 +51,13 @@ sub new { $self->bench("connected to $dbd as $user"); + # force SQLite to support binary 0 in data (which shouldn't + # happend, but it did to me) + eval { + no warnings 'all'; + $self->{dbh}->{sqlite_handle_binary_nulls} = 1; + }; + return $self; }