14 use DBIC::SqlMakerTest;
16 my $schema = DBICTest->init_schema();
19 my $rs = $schema->resultset("CD")->search(
20 { 'artist.name' => 'Caterwauler McCrae' },
21 { join => [qw/artist/]}
23 my $squery = $rs->get_column('cdid')->as_query;
24 my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $squery } } );
25 is($subsel_rs->count, $rs->count, 'Subselect on PK got the same row count');