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