You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
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
<[email protected]>
On Mon, 9 Oct 2006, [email protected] 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
>
>
>
The text was updated successfully, but these errors were encountered:
Migrated from rt.cpan.org#21328 (status was 'open')
Requestors:
Attachments:
From [email protected] on 2006-09-05 09:45:42:
From [email protected] on 2006-10-08 06:03:33:
From [email protected] on 2006-10-09 09:28:50:
From [email protected] on 2006-10-11 04:10:44:
The text was updated successfully, but these errors were encountered: