Subject: | missplaced finish() in Hash() -- spurious error |
Date: | Wed, 26 Mar 2014 15:49:18 -0700 (PDT) |
To: | "bug-DBIx-DWIW [...] rt.cpan.org" <bug-DBIx-DWIW [...] rt.cpan.org> |
From: | Rick James <webmaster [...] rjweb.org> |
In the Hash() subroutine of DWIW.pm, at about line 1509, move the finish to outside the IF{}:
if (not $result)
{
if ($sth->err)
{
$@ = $sth->errstr . " [$sql] ($sth)";
}
else
{
$@ = "";
}
### $sth->finish; was here
}
$sth->finish; ## moved to here
-- Rick James