1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
11 my $schema = DBICTest->init_schema();
14 my $rs = $schema->resultset("CD")->search(
15 { 'artist.name' => 'Caterwauler McCrae' },
16 { join => [qw/artist/]}
18 my $squery = $rs->get_column('cdid')->as_query;
19 my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $squery } } );
20 is($subsel_rs->count, $rs->count, 'Subselect on PK got the same row count');