9 my $schema = DBICTest->init_schema();
12 my $rs = $schema->resultset("CD")->search(
13 { 'artist.name' => 'Caterwauler McCrae' },
14 { join => [qw/artist/]}
16 my $squery = $rs->get_column('cdid')->as_query;
17 my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $squery } } );
18 is($subsel_rs->count, $rs->count, 'Subselect on PK got the same row count');