Dean Arnold wrote:
> (Not certain which list this belongs on, so I'm sending to both)
>
> I've been testing my drivers with PurePerl, and ran into a little
> problem I'm hoping someone can enlighten me about:
>
> My test script runs splendidly until it calls
> $drh->func(...'MyDriverSpecificFunction');
Hmm, a driver handle. Whoops, I think I inadvertently limited func()
calls to database handles, see fix below.
> Is the $handle->func() capability unavailable in PurePerl ?
It's available for database handles. All the $dbh->func() methods I've
tried with the $DBD::CSV and DBD::AnyData have worked.
To make it available to other handles, comment out lines 175, and 176 in
DBI::PurePerl and add the line as shown below:
175 # $imp =~ s/^(.*)::([^:]+)$/$1/;
176 # $method_name = $imp.'::db::'. pop @_;
$method_name = $imp . '::' . pop @_;
--
Jeff