Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 38121
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Catalyst-Model-DBI

Owner: Nobody
Requestors: pplu <jlmartinez [...] capside.com>
Cc:
AdminCc:

Severity: Important
Broken in: 0.14
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Sat Aug 02 05:33:10 2008 pplu - Ticket created  
Subject: errors during DESTROY
[text/plain 435b]
Catalyst outputs many:

"(in cleanup) Can't use an undefined value as a HASH reference at
/usr/share/perl5/Catalyst/Model/DBI.pm line 84 during global destruction"

messages in the logs.

This is because _dbh is not always defined when DESTROY gets called
(when not using a connection.

Here is the patch I've applied to cancel the errors.

sub DESTROY {
my $self = shift;
$self->disconnect if (defined $self->_dbh);
}

#   Sun Dec 07 20:58:38 2008 ALEXP - Correspondence added  
[text/plain 55b]
Patch applied, new version 0.20 uploaded to PAUSE/CPAN.
#   Sun Dec 07 20:58:41 2008 RT_System - Status changed from 'new' to 'open'  
#   Sun Dec 07 20:58:42 2008 ALEXP - Status changed from 'open' to 'resolved'