Subject: | destroy active query objects before disconnect |
Dear Maintainer
Could you please fix a very small problem in Template::Plugin::DBI
module.
there is a problem with disconnect method
you forgot to destroy queries.
sub disconnect {
my $self = shift;
########## line below should be added #####################
delete($self->{ _STH }); # first DESTROY any queries
########## line below should be added #####################
$self->{ _DBH }->disconnect()
if $self->{ _DBH };
delete $self->{ _DBH };
return '';
}
Thank you,
Pavel