test for prefetch by columns
Justin Hunter [Tue, 28 Apr 2009 23:16:48 +0000 (23:16 +0000)]
t/76select.t

index 19e59ba..77b5541 100644 (file)
@@ -73,3 +73,10 @@ is ($subsel->next->title, $cds->next->title, 'First CD title match');
 is ($subsel->next->title, $cds->next->title, 'Second CD title match');
 
 is($schema->resultset('CD')->current_source_alias, "me", '$rs->current_source_alias returns "me"');
+
+my @cds = $schema->resultset('CD')->search({},
+    {
+        'join' => 'artist',
+        'columns' => ['cdid','title','artist.name'],
+    }
+);