about summary refs log tree commit homepage
path: root/t/v1reindex.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-26 08:17:38 +0000
committerEric Wong <e@yhbt.net>2020-08-27 10:57:24 +0000
commit1814b1a0b78770c8ba9e7a0adef56c4c324d4064 (patch)
tree8bf80366cc71b199f9a99a4cc5cb6a0d8d223dff /t/v1reindex.t
parent71a27b7f45140194566e945ee7957e81abbc67bf (diff)
downloadpublic-inbox-1814b1a0b78770c8ba9e7a0adef56c4c324d4064.tar.gz
over: rename ->connect method to ->dbh
`->connect' is confused with the perlfunc for the `connect(2)'
syscall, and also `DBI->connect'.  Since SQLite doesn't use
sockets, the word "connect" needlessly confuses me.  Give
it a short name to match the field name we use for it, which
also matches the variable name used by the DBI(3pm) and
DBD::SQLite(3pm) manpages.
Diffstat (limited to 't/v1reindex.t')
-rw-r--r--t/v1reindex.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/v1reindex.t b/t/v1reindex.t
index d70ed4b9..a5c85ffb 100644
--- a/t/v1reindex.t
+++ b/t/v1reindex.t
@@ -434,7 +434,7 @@ ok(!-d $xap, 'Xapian directories removed again');
         my $ibx = PublicInbox::Inbox->new({ %$ibx_config });
         my $f = $ibx->over->{dbh}->sqlite_db_filename;
         my $over = PublicInbox::OverIdx->new($f);
-        my $dbh = $over->connect;
+        my $dbh = $over->dbh;
         my $non_ghost_tids = sub {
                 $dbh->selectall_arrayref(<<'');
 SELECT tid FROM over WHERE num > 0 ORDER BY tid ASC