X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fresultset%2Fas_query.t;h=f3a09fc80db9277954e119c688d14d2a05ed24f1;hb=5a825e673241638c4bc1fcc93238ceb4df5ca49d;hp=f849f7a20baaa470f5f5d3e455d215c84c1f4e78;hpb=038af71cf6f6c77cb1380378d4887a7da03fe2b2;p=dbsrgits%2FDBIx-Class.git diff --git a/t/resultset/as_query.t b/t/resultset/as_query.t index f849f7a..f3a09fc 100644 --- a/t/resultset/as_query.t +++ b/t/resultset/as_query.t @@ -66,12 +66,11 @@ my $rscol = $art_rs->get_column( 'charfield' ); ); } -TODO: { - local $TODO = 'Needs -paren fixes in SQLA before it can work'; - my $rs = $schema->resultset("CD")->search( - { 'artist.name' => 'Caterwauler McCrae' }, - { join => [qw/artist/]} - ); - my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $rs->get_column('cdid')->as_query } } ); - cmp_ok($subsel_rs->count, '==', $rs->count, 'Subselect on PK got the same row count'); +{ + my $rs = $schema->resultset("CD")->search( + { 'artist.name' => 'Caterwauler McCrae' }, + { join => [qw/artist/]} + ); + my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $rs->get_column('cdid')->as_query } } ); + is($subsel_rs->count, $rs->count, 'Subselect on PK got the same row count'); }