[Dbix-class] InflateColumn::DateTime

Matt S Trout dbix-class at trout.me.uk
Thu Aug 10 19:27:02 CEST 2006


Jonas wrote:
> You are right Matt. I'm sorry for that.
> 
> The database i'm using is SQLite. I have just one row:
> 
> sqlite> select * from dvd;
> 5|Jurassic Park II|133|1|2|2000-02-02 10:00:00|2000-02-02 10:00:00|10:00
> 
> Here is the relevant column definition:
> 
> __PACKAGE__->add_columns(
>           <striped>
>           'alter_date' => {
>                             'data_type' => 'datetime',
>                             'name' => 'alter_date',
>                             'label' => 'Alter Date',
>                             'is_nullable' => 0,
>                             'size' => undef
>                           },
>           'creation_date' => {
>                                'data_type' => 'date',
>                                'name' => 'creation_date',
>                                'label' => 'Creation Date',
>                                'is_nullable' => 0,
>                                'size' => undef
>                              },
>           <striped>
> );

Ok, by default we use DateTime::Format::MySQL under SQLite since it seems to 
work there as well.

Maybe if you prod that in isolation and see if you can send the author a test 
case?



More information about the Dbix-class mailing list