Re: Patch for overloaded stringfication problems

[prev] [thread] [next] [Date index for 2005/07/22]

From: colm-cdbi
Subject: Re: Patch for overloaded stringfication problems
Date: 16:26 on 22 Jul 2005
On Fri, Jul 22, 2005 at 11:40:58AM -0400, Aaron Ross wrote:
> Hi,
> 
> I can't find anything in 0.999 that looks relevant. Of course, I can't 
> be sure, since I don't know what the problem really is.
> 
> Any chance you or Tim remember what the issue was?
> 
> I'm having trouble reproducing the problem consistently, although it's 
> definitely occuring from time to time, so I'd like to better understand 
> what is going on.

Aaron,

What you describe sounds like something from a thread entitled "Need
help with finding solution to CDBI bug" from Jun 2004.  I could be wrong
of course.

If it is the patch I can think of it boiled down to the following -
which is in 0.99.

Colm

--- lib/Class/DBI.pm.prev       Tue Jun 22 10:16:58 2004
+++ lib/Class/DBI.pm    Tue Jun 22 17:16:31 2004
@@ -251,4 +251,5 @@
        # exisitng values for PK columns, or else loop endlessly
        my @pk_values = @{$self}{ $self->primary_columns };
+       UNIVERSAL::can($_,'id') and $_ = $_->id for @pk_values;
        return @pk_values if wantarray;
        $self->_croak(



> Tony Bowden wrote:
> >On Thu, Jul 21, 2005 at 11:21:47AM -0400, Aaron Ross wrote:
> >
> >>Can someone point me to the patch Tim Bunce submitted for the overloaded 
> >>stringification problems? I'm not able to find it in the archives.
> >
> >
> >I'm not sure what the specific patch is, but there's a 0.999 release at
> >http://www.tmtm.com/CPAN/ that presumably fixes the problem.
> >
> >Tony

Patch for overloaded stringfication problems
Aaron Ross 15:21 on 21 Jul 2005

Re: Patch for overloaded stringfication problems
colm-cdbi 16:26 on 22 Jul 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52