[Dbix-class] inflate_column with DateTime::Format::MySQL and invalid dates

Jonathan Rockway jon at jrock.us
Sat Oct 27 13:14:24 GMT 2007


Ash Berlin wrote:
> I'm not sure if InflateColumn::DateTime will handle this better or not,
> but its the first thing to try.
>
> Ash
InflateColumn::DateTime basically does the same thing.  The solution
would be to remove the corrupt data from the database, or maybe modify
DT::Format::MySQL to convert 0000-00-00 00:00:00 into "undef".  I think
0000-00-00 00:00:00 is meant to be treated as NULL, right?

Regards,
Jonathan Rockway


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20071027/f0=
3513da/signature.pgp


More information about the DBIx-Class mailing list