about summary refs log tree commit homepage
path: root/lib/PublicInbox/OverIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-02-04 04:44:25 +0000
committerEric Wong <e@yhbt.net>2020-02-04 21:39:56 +0000
commit253a86b7bf4a3d81118e91f4ebb77844cfbd2b32 (patch)
treeda6b875b9d5f38be331b59adcdd37b5708a4c65a /lib/PublicInbox/OverIdx.pm
parentfea03df0e2e95ad3ac44ac46d9c31da97fa2fde9 (diff)
downloadpublic-inbox-253a86b7bf4a3d81118e91f4ebb77844cfbd2b32.tar.gz
No need to call ref() and do a string comparison.  Add some
extra tests using the {ReadOnly} attribute in DBI.pm.
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
-rw-r--r--lib/PublicInbox/OverIdx.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm
index 5f1007aa..a966a710 100644
--- a/lib/PublicInbox/OverIdx.pm
+++ b/lib/PublicInbox/OverIdx.pm
@@ -20,7 +20,7 @@ use PublicInbox::Search;
 
 sub dbh_new {
         my ($self) = @_;
-        my $dbh = $self->SUPER::dbh_new;
+        my $dbh = $self->SUPER::dbh_new(1);
         $dbh->do('PRAGMA journal_mode = TRUNCATE');
         $dbh->do('PRAGMA cache_size = 80000');
         create_tables($dbh);