Skip Menu |

This queue is for tickets about the Clone CPAN distribution.

Report information
The Basics
Id: 21328
Status: open
Priority: 0/
Queue: Clone

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Kills DBHs
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.
Subject: Re: [rt.cpan.org #21328] Kills DBHs
Date: Mon, 09 Oct 2006 10:28:28 +0100
To: bug-Clone [...] rt.cpan.org
From: Lee Goddard <lee [...] leegoddard.net>
via RT wrote: Show quoted text
> <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

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #21328] Kills DBHs
Date: Tue, 10 Oct 2006 21:10:29 -0700 (PDT)
To: "west.finchley [...] leegoddard.net via RT" <bug-Clone [...] rt.cpan.org>
From: Ray Finch <finchray [...] nventure.com>
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: Show quoted text
> > 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 > > >
begin:vcard fn:Lee Goddard n:Goddard;Lee org:Server-side Systems Ltd adr:;;;London;;N12 7PD;Uk email;internet:sss@LeeGoddard.net tel;work:0208 369 6832 x-mozilla-html:FALSE url:http://www.LeeGoddard.net version:2.1 end:vcard
Ticket migrated to github as https://github.com/garu/Clone/issues/17