1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2 use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
9 use lib 't/cdbi/testlib';
12 for my $title ("Bad Taste", "Braindead", "Forgotten Silver") {
13 Film->insert({ Title => $title, Director => 'Peter Jackson' });
16 Film->insert({ Title => "Transformers", Director => "Michael Bay"});
19 my @films = Film->retrieve_from_sql(qq[director = "Peter Jackson" LIMIT 2]);
20 is @films, 2, "retrieve_from_sql with LIMIT";
21 is( $_->director, "Peter Jackson" ) for @films;