Skip Menu |

This queue is for tickets about the Class-DBI-Pg CPAN distribution.

Report information
The Basics
Id: 18093
Status: new
Priority: 0/
Queue: Class-DBI-Pg

Owner: Nobody in particular
Requestors: asuffield [...]

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)

Subject: _croak should be a class method
Download (untitled) / with headers
text/plain 500b
Class::DBI::Pg::_croak is defined and used by Class::DBI::Pg as a simple sub that's called directly. Unfortunately, Class::DBI defines and uses it as a class method. The result of this is that when Class::DBI croaks, it ends up calling Carp::croak($self, $msg), so you get the stringified class/object stuffed into the exception. I'm guessing that Class::DBI::Pg::_croak was not supposed to override the like-named method in Class::DBI. It should either be renamed, or changed to be a class method.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to