ported 257:258 from hidra branch
[webpac] / index_DBI_cache.pm
index 43a1b27..3c43bc7 100644 (file)
@@ -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;
 }