Skip Menu |

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

Report information
The Basics
Id: 6338
Status: resolved
Priority: 0/
Queue: Ima-DBI

People
Owner: Nobody in particular
Requestors: drew [...] drewtaylor.com
Cc:
AdminCc:

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



Subject: Use of RootClass attribute can cause problems
I recently ran into a problem with Class::DBI (and indirectly Ima::DBI). I'm creating a standalone installation for a webapp and needed to find a list of all modules used via the application. I used Devel::Modlist to generate the list. But it didn't find DBIx::ContextualFetch, which caused me a few hours of frustration until I finally figured out the missing module. It seems reasonable that Ima::DBI should use DBIx::ContextualFetch so that the dependency can be found. A patch is attached for the version 0.33. --- DBI_orig.pm Mon May 17 20:13:37 2004 +++ DBI.pm Mon May 17 20:14:16 2004 @@ -5,6 +5,7 @@ use strict; use base 'Class::Data::Inheritable'; use DBI; +use DBIx::ContextualFetch; # Some class data to store a per-class list of handles. Ima::DBI->mk_classdata('__Database_Names');
Date: Tue, 18 May 2004 21:51:28 +0100
From: Tony Bowden <tony [...] kasei.com>
To: Guest via RT <bug-Ima-DBI [...] rt.cpan.org>
Subject: Re: [cpan #6338] Use of RootClass attribute can cause problems
RT-Send-Cc:
On Mon, May 17, 2004 at 08:29:48PM -0400, Guest via RT wrote: Show quoted text
> I recently ran into a problem with Class::DBI (and indirectly > Ima::DBI). I'm creating a standalone installation for a webapp and > needed to find a list of all modules used via the application. I > used Devel::Modlist to generate the list. But it didn't find > DBIx::ContextualFetch, which caused me a few hours of frustration until I > finally figured out the missing module. It seems reasonable that Ima::DBI > should use DBIx::ContextualFetch so that the dependency can be found. A > patch is attached for the version 0.33.
Hi, Thanks for this. However, DBIx::ContextualFetch is only a default for Ima::DBI - not a necessity - it's entirely possible to use it with a different RootClass. So I'm reluctant to 'use' it just to work around a shortcoming in Devel::Modlist. Perhaps that (or maybe even DBI itself) can be changed so that this is recognised? Tony