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