From 253a86b7bf4a3d81118e91f4ebb77844cfbd2b32 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 4 Feb 2020 04:44:25 +0000 Subject: over: simplify read-only vs read-write checking No need to call ref() and do a string comparison. Add some extra tests using the {ReadOnly} attribute in DBI.pm. --- lib/PublicInbox/OverIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/OverIdx.pm') 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); -- cgit v1.2.3-24-ge0c7