[Dbix-class] Possible error in DBIx::Class::TimeStamp
Wallace Reis
reis.wallace at gmail.com
Thu Aug 6 12:20:12 GMT 2009
On Fri, Jul 31, 2009 at 2:33 PM, Oleg Kostyuk<cub.uanic at gmail.com> wrote:
> As for me, following code have more sence:
>
> ===== cut =====
> if ( delete $info->{set_on_update} ) {
> $info->{dynamic_default_on_update} = 'get_timestamp';
>
> unless ( defined $info->{dynamic_default_on_create} and
> $info->{dynamic_default_on_create} eq 'get_timestamp'
> ) {
> $info->{dynamic_default_on_create} = 'get_timestamp';
> }
> }
> ===== cut =====
Hmm. It seems to be right, except that I'm not sure if
dynamic_default_*on_create* should depend of set_*on_update*.
--
wallace reis/wreis Catalyst and DBIx::Class consultancy with a clue
Software Developer and a commit bit: http://shadowcat.co.uk/catalyst/
Shadowcat Systems Limited
http://www.shadowcat.co.uk http://www.linkedin.com/in/wallacereis
More information about the DBIx-Class
mailing list