11 my $schema = DBICTest->init_schema();
14 my $no_prefetch = $schema->resultset('Track')->search_related(cd =>
20 order_by => 'me.trackid',
25 my $use_prefetch = $no_prefetch->search(
34 } "M -> 1 -> M with order_by using first rs and limit generates valid SQL";
36 is($no_prefetch->count, $use_prefetch->count, '$no_prefetch->count == $use_prefetch->count');
38 scalar ($no_prefetch->all),
39 scalar ($use_prefetch->all),
40 "Amount of returned rows is right"