After cloning, my DBI database handles barf with:
Can't call prepare method on handle DBI::db=HASH(0x25755c8) after
take_imp_data() at ../lib/Radio/Four/Programme.pm line 104.
From rdf@cpan.org on 2006-10-08 06:03:33:
A DBH is something can't be cloned (at least by Clone) since there are
too many underlying objects like C structures, file handles, etc that
Clone doesn't handle.
A DBI database handle does have it's own clone method. I have considered
having Clone check an object for a native clone method and using that in
preference of it's own, but I think it might be a little too ambitious
for me.
From west.finchley@leegoddard.net on 2006-10-09 09:28:50:
via RT wrote:
> <URL: http://rt.cpan.org/Ticket/Display.html?id=21328 >
>
> A DBH is something can't be cloned (at least by Clone) since there are
> too many underlying objects like C structures, file handles, etc that
> Clone doesn't handle.
>
> A DBI database handle does have it's own clone method. I have considered
> having Clone check an object for a native clone method and using that in
> preference of it's own, but I think it might be a little too ambitious
> for me.
>
>
Having Clone check a blessed reference for a clone method should be
really simple, using UNIVERSAL isa, so why not give it a shot? Sounds
like a great return for a little investment...!
Just a thought. I could supply you a patch ?
Lee
--
Lee Goddard
Server-side Systems Ltd
London N1 :: 0208 369 6832
From finchray@nventure.com on 2006-10-11 04:10:44:
Hi Lee,
I'm glad you wrote, I had lost your previous email when I deleted an
entire month of archived messages.
By all means, if you want to supply a patch I will gladly look at it.
Sincerely,
Ray Finch
<finchray@nventure.com>
On Mon, 9 Oct 2006, west.finchley@leegoddard.net via RT wrote:
>
> Queue: Clone
> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21328 >
>
> via RT wrote:
>> <URL: http://rt.cpan.org/Ticket/Display.html?id=21328 >
>>
>> A DBH is something can't be cloned (at least by Clone) since there are
>> too many underlying objects like C structures, file handles, etc that
>> Clone doesn't handle.
>>
>> A DBI database handle does have it's own clone method. I have considered
>> having Clone check an object for a native clone method and using that in
>> preference of it's own, but I think it might be a little too ambitious
>> for me.
>>
>>
> Having Clone check a blessed reference for a clone method should be
> really simple, using UNIVERSAL isa, so why not give it a shot? Sounds
> like a great return for a little investment...!
>
> Just a thought. I could supply you a patch ?
>
> Lee
>
> --
> Lee Goddard
> Server-side Systems Ltd
> London N1 :: 0208 369 6832
>
>
>
Migrated from rt.cpan.org#21328 (status was 'open')
Requestors:
Attachments:
From lgoddard@cpan.org on 2006-09-05 09:45:42:
From rdf@cpan.org on 2006-10-08 06:03:33:
From west.finchley@leegoddard.net on 2006-10-09 09:28:50:
From finchray@nventure.com on 2006-10-11 04:10:44: