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');