Subject: | reset method leads to failure with DBIx::Class::Exception |
When you call $query_log->reset and after that produce any query with
DBIx it leads to failure with DBIx::Class::Exception exception. The
reason is in the error in reset method: to log array you should call
$self->log([]) instead of $self->log(undef).
sub reset
{
my $self = shift;
#$self->log(undef);
$self->log([]);
}