[Bast-commits] r9290 - DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/Storage

ribasushi at dev.catalyst.perl.org ribasushi at dev.catalyst.perl.org
Mon May 3 16:33:14 GMT 2010


Author: ribasushi
Date: 2010-05-03 17:33:14 +0100 (Mon, 03 May 2010)
New Revision: 9290

Modified:
   DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/Storage/DBIHacks.pm
Log:
Add an as selector to a prefetch subquery to aid the subselecting-limit analyzer

Modified: DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/Storage/DBIHacks.pm
===================================================================
--- DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/Storage/DBIHacks.pm	2010-05-03 16:32:35 UTC (rev 9289)
+++ DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/Storage/DBIHacks.pm	2010-05-03 16:33:14 UTC (rev 9290)
@@ -94,6 +94,8 @@
     }
 
     push @$inner_select, $sel;
+
+    push @{$inner_attrs->{as}}, $attrs->{as}[$i];
   }
 
   # construct the inner $from for the subquery




More information about the Bast-commits mailing list