On Tue, Mar 04, 2003 at 04:21:10PM -0800, Dean Arnold wrote:
> > On Tue, Mar 04, 2003 at 02:31:37PM -0800, Dean Arnold wrote:
> > > While trying to test some multiprocessing on Win2K (ActiveState 633), I
> ran
> > > into
> > > an issue I'm hoping you can shed some light on. If I open a $dbh before
> > > forking
> > > off some kids that also open some $dbh's, I get the following error in
> the
> > > kids:
> > >
> > > "DBD::Teradata::dr connect failed: handle 1 is owned by thread 1abf360
> not
> > > current thread 3adf034 (ha
> > > ndles can't be shared between threads and your driver may need a CLONE
> > > method added) at D:/Perl/site
> > > /lib/DBI.pm line 513."
> >
> > Add
> > sub CLONE {
> > undef $drh;
> > }
> >
> > to the DBI::Teradata package, such that when an interpreter is cloned
> > the new one doesn't have the driver handle cached.
>
> Tried it, but still fails. Tried various version of same, still no go. So I
> hacked
> same into DBD::Chart to see if it misbehaves...and indeed it does. Tried
> putting a print into the CLONE, it never prints...does DBI explicitly invoke
> this, or just Perl itself ?
Perl.
> Haven't tried DBI 1.33/1.34 , but
> my hunch is this is a Perl issue; do I need a newer version of 5.6.1 ? (I
> see AS has more current builds available).
Worth trying before digging deeper.
Tim.