[Bast-commits] r5699 - DBIx-Class/0.08/branches/prefetch/t/prefetch
robkinyon at dev.catalyst.perl.org
robkinyon at dev.catalyst.perl.org
Fri Mar 6 19:56:50 GMT 2009
Author: robkinyon
Date: 2009-03-06 19:56:50 +0000 (Fri, 06 Mar 2009)
New Revision: 5699
Modified:
DBIx-Class/0.08/branches/prefetch/t/prefetch/rows_bug.t
Log:
Fixed documentation for test
Modified: DBIx-Class/0.08/branches/prefetch/t/prefetch/rows_bug.t
===================================================================
--- DBIx-Class/0.08/branches/prefetch/t/prefetch/rows_bug.t 2009-03-06 19:56:18 UTC (rev 5698)
+++ DBIx-Class/0.08/branches/prefetch/t/prefetch/rows_bug.t 2009-03-06 19:56:50 UTC (rev 5699)
@@ -40,27 +40,7 @@
. " \$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
joined to the tables we're prefetching from. This might result in the same
More information about the Bast-commits
mailing list