Skip to content

Commit 949380e

Browse files
committed
Remove wrong usage of $sth->finish() from documentation
According to DBI documentation $sth->finish() should not be called after fetching all data.
1 parent 67db714 commit 949380e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/DBD/MariaDB.pod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ DBD::MariaDB - MariaDB and MySQL driver for the Perl5 Database Interface (DBI)
1919
while (my $ref = $sth->fetchrow_hashref()) {
2020
print "Found a row: id = $ref->{'id'}, fn = $ref->{'first_name'}\n";
2121
}
22-
$sth->finish();
2322

2423
=head1 EXAMPLE
2524

@@ -55,7 +54,6 @@ DBD::MariaDB - MariaDB and MySQL driver for the Perl5 Database Interface (DBI)
5554
while (my $ref = $sth->fetchrow_hashref()) {
5655
print "Found a row: id = $ref->{'id'}, name = $ref->{'name'}\n";
5756
}
58-
$sth->finish();
5957

6058
# Disconnect from the database.
6159
$dbh->disconnect();

0 commit comments

Comments
 (0)