[CDBI] Trouble deflating a Time::Piece with Class::DBI v3.0.14

Matt S Trout dbix-class at trout.me.uk
Mon Mar 27 14:13:25 BST 2006


Ron Savage wrote:
>  so I tried a deflate line of:
> 	deflate		=> "strftime('%Y-%m-%d %H:%M:%S)",


Which isn't a method name. And has a mismatched '

deflate => sub { shift->strftime('%Y-%m-%d %H:%M:%S'); }

is what you want, I think.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +




More information about the ClassDBI mailing list