6 eval "use DBIx::Class::CDBICompat;";
8 plan (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@");
12 plan skip_all => 'Set $ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test'
13 unless ($ENV{DBICTEST_MYSQL_DSN} && $ENV{DBICTEST_MYSQL_USER});
15 eval { require Time::Piece::MySQL };
16 plan skip_all => "Need Time::Piece::MySQL for this test" if $@;
20 use lib 't/cdbi/testlib';
25 my $log = Log->insert( { message => 'initial message' } );
26 ok eval { $log->datetime_stamp }, "Have datetime";
29 $log->message( 'a revised message' );
31 ok eval { $log->datetime_stamp }, "Have datetime after update";