[CDBI] new reserved words in 3.0.11?

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Fri Nov 4 13:14:57 GMT 2005


On Fri, 2005-11-04 at 12:56 +0000, William Ross wrote:
> On 4 Nov 2005, at 12:36, William Ross wrote:
> 
> > incidentally, your lc($column) is likely redundant anyway: $column  
> > is an object and stringifies to a lowercased version of its name.  
> > As a test, I'd suggest that you either omit the lc($column) or add  
> > a simple mutator_name_for method:
> >
> >   sub mutator_name_for {
> >     return lc(shift);
> >   }
> 
> meh. you probably already changed that to
> 
>    sub mutator_name_for {
>      my $class = shift;
>      return lc(shift);
>    }

If you're going to go with a workaround for the bug, the code needed is
actually simpler and more general:

  *mutator_name_for = \&accessor_name_for;

Cheers, Dave





More information about the ClassDBI mailing list