Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 83207
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: DAMI [...] cpan.org
Cc:
AdminCc:

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



Subject: $handle->can('some_method') ignores added methods
$dbh->can('some_method') ignores methods added by subclasses of DBI. I discovered this while working with DBIx::RetryOverDisconnects; $dbh- Show quoted text
>can('is_trans_disconnect') returns false, but a call to $dbh- >is_trans_disconnect succeeds because DBIx::RetryOverDisconnects::db
indeed implements that method.
Tthe $h->can() method say "Returns true if $method_name is implemented by the driver or a default method is provided by the DBI". Note "implemented by the driver" .$h->can() is like a proxy for $h->{ImplementorClass}->can().
Docs patched in r15574. Thanks.