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

Report information
The Basics
Id:
6125
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Normal
Broken in:
0.95
Fixed in:
0.96



Subject: Too old DBD::SQLite makes test to fail
I just tried to install Class::DBI. Perl 5.6.1, w2k. After a lot of fiddling around, all tests now pass. First, e.g. test 05-Query failed. This was because I had an old version (0.17) of DBD::SQLite that didn't support the table aliasing syntax. Upgrading to the latest DBD::SQLite solved that problem. I propose that some kind of version requirement is specified somewhere to skip tests unless a new DBD::SQLite is present. Second, test 98-failure.t failed. This line local *Ima::DBI::st::execute = sub { die "Database died" }; isn't enough to cause a die, since it seems that Ima::DBI is not in the ISA hierarchy. I traced the call to DBIx::ContextualFetch where the line "my $ret = $sth->SUPER::execute(@_);" in sub _untaint_execute seems to not call Ima::DBI::st::execute, but DBI::st::execute. Adding this line local *DBI::st::execute = sub { die "Database died" }; causes the tests to fail properly. I'm not sure that's correct, but it seems to emulate the "correctly failing" behaviour. One or both of these probably fails the automatic tests at ActiveState, so no PPM is available for this at the place where people mostly look for it.
Date: Wed, 28 Apr 2004 22:16:45 +0100
From: Tony Bowden <tony@kasei.com>
To: Guest via RT <bug-Class-DBI@rt.cpan.org>
Subject: Re: [cpan #6125] Too old DBD::SQLite makes test to fail
RT-Send-Cc:
On Sun, Apr 25, 2004 at 07:23:27PM -0400, Guest via RT wrote:
Show quoted text
> First, e.g. test 05-Query failed. This was because I had an old version > (0.17) of DBD::SQLite that didn't support the table aliasing syntax.
I'm not really sure when that changed. As it's only a testing pre-req I'm reluctant to start digging too deeply. In the next release (you've just missed this one), I'll probably move to Module::Build where I can list test pre-reqs differently.
Show quoted text
> Second, test 98-failure.t failed.
This is a known issue between the current CPAN Class::DBI and the current Ima::DBI. The Class::DBI that's being released tonight has this fixed. Thanks, Tony


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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