From: Rob Kinyon Date: Fri, 6 Mar 2009 19:56:50 +0000 (+0000) Subject: Fixed documentation for test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb84653f9f3124fa2c1c1c6885e100923ce93842;p=dbsrgits%2FDBIx-Class-Historic.git Fixed documentation for test --- diff --git a/t/prefetch/rows_bug.t b/t/prefetch/rows_bug.t index 8683b16..1457013 100644 --- a/t/prefetch/rows_bug.t +++ b/t/prefetch/rows_bug.t @@ -40,26 +40,6 @@ TODO: { . " \$use_prefetch_count == $use_prefetch_count)" ); } -__END__ -my $rs1 = $schema->resultset('Artist')->search( - undef, { -# join => 'cds', - }, -); -warn ${$rs1->as_query}->[0], $/; -{ my @x = $rs1->all; warn "$#x\n"; } - -my $rs2 = $schema->resultset('Artist')->search( - undef, { - from => [{ - me => $rs1->as_query, - }], - prefetch => 'cds', - }, -); - -warn ${$rs2->as_query}->[0], $/; -{ my @x = $rs2->all; warn "$#x\n"; } __END__ The fix is to, when using prefetch, take the query and put it into a subquery