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