[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [GT] Re: DB::Text broken in r589



Excellent point.

Note that this was a bug in the existing GT::DB::Text also. I will check for all DB modules to make sure that they do not fall afoul of this....

Thanks, Th.

> -----Original Message-----
> From: Raphael Hertzog [mailto:raphael
AT
ouaza.com]
> Sent: Sunday, March 23, 2008 5:55 AM
> To: Stanislav Meduna
> Cc: devel
AT
geniustrader.org
> Subject: [GT] Re: DB::Text broken in r589
> 
> Le dimanche 23 mars 2008, Stanislav Meduna a écrit :
> > Hi,
> >
> > the r589 broke DB::Text for non-default field numbers.
> > E.g. if I have the date in the first field (index 0),
> > the following line
> >
> >   if (!$self->{'datetime'}) { $self->{'datetime'} = 5; }
> >
> > resets it back to 5.
> 
> Check for "!defined($self->{'datetime'})" instead then.
> 
> Cheers,
> --
> Raphaël Hertzog -+- http://www.ouaza.com
> 
> Freexian : des développeurs Debian au service des entreprises
> http://www.freexian.com