diff options
author | Eric Wong <e@yhbt.net> | 2020-08-26 08:17:38 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-27 10:57:24 +0000 |
commit | 1814b1a0b78770c8ba9e7a0adef56c4c324d4064 (patch) | |
tree | 8bf80366cc71b199f9a99a4cc5cb6a0d8d223dff /t/search-thr-index.t | |
parent | 71a27b7f45140194566e945ee7957e81abbc67bf (diff) | |
download | public-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/search-thr-index.t')
-rw-r--r-- | t/search-thr-index.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/search-thr-index.t b/t/search-thr-index.t index 914807a8..b5a5ff1f 100644 --- a/t/search-thr-index.t +++ b/t/search-thr-index.t @@ -60,7 +60,7 @@ foreach (reverse split(/\n\n/, $data)) { my $prev; my %tids; -my $dbh = $rw->{over}->connect; +my $dbh = $rw->{over}->dbh; foreach my $mid (@mids) { my $msgs = $rw->{over}->get_thread($mid); is(3, scalar(@$msgs), "got all messages from $mid"); @@ -84,7 +84,7 @@ Message-Id: <1-bw@g> From: bw@g To: git@vger.kernel.org - my $dbh = $rw->{over}->connect; + my $dbh = $rw->{over}->dbh; my ($id, $prev); my $reidx = $rw->{over}->next_by_mid('1-bw@g', \$id, \$prev); ok(defined $reidx); |