5 use lib 't/cdbi/testlib';
6 use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs
9 eval { require DateTime; DateTime->VERSION(0.55) }
10 or plan skip_all => 'DateTime 0.55 required for this test';
14 # Don't use Test::NoWarnings because of an unrelated DBD::SQLite warning.
16 local $SIG{__WARN__} = sub {
23 use base 'DBIC::Test::SQLite';
25 Thing->columns(All => qw[thing_id this that date]);
28 my $thing = Thing->construct({ thing_id => 23, this => 42 });
29 $thing->set( this => undef );
30 is $thing->get( "this" ), undef, 'undef set';
31 $thing->discard_changes;
33 is @warnings, 0, 'no warnings';