use DBICTest;
# so user's env doesn't screw us
-undef $ENV{DBIC_DT_SEARCH_OK};
+delete $ENV{DBIC_DT_SEARCH_OK};
my $schema = DBICTest->init_schema();
} [$dt_warn_re],
'using a DateTime object in ->search generates a warning';
-TODO: {
- local $TODO = "We can't do this yet before 0.09" if DBIx::Class->VERSION < 0.09;
+{
+ local $TODO = "This stuff won't work without a -dt operator of some sort"
+ unless eval { require DBIx::Class::SQLMaker::DateOps };
is(eval { $row->id }, 1, 'DT in search');