From: Jonathan C. <cra...@pc...> - 2003-10-16 01:47:07
|
Steve- On Mon, 6 Oct 2003, Steve Fischer wrote: > which workaround? the original one you put in place is this, at the end > of DbiDbHandle.pm: > > > # JC 9/6/2002 > # > # Subclassing not set up correctly according to DBI manpage; > # this appears to fix it, although the structure is still > # a little off. The fact that we're reblessing the return > # value from the DBI connect() method is making everything > # work, albeit in a roundabout way. > # > package GUS::ObjRelP::DbiDbHandle::db; > use vars qw(@ISA); > @ISA = qw( DBI::db ); > > Thats been in place for ages. > > is there another one? > Yes; for more recent versions of DBI and/or Perl (I forget the exact details) I also added the following lines-- package DbiDbHandle::st; use vars qw(@ISA); @ISA = qw( DBI::st ); Locally e2kroos has this patch (installed in /usr/lib/perl5/site_perl/5.6.1/Objects/dbiperl_utils) and I thought I'd mentioned it in an e-mail earlier, but perhaps not. Jonathan |