use proper format
Justin Hunter [Fri, 13 Mar 2009 07:10:52 +0000 (07:10 +0000)]
lib/DBIx/Class/ResultSet.pm

index cffc524..99ce6ce 100644 (file)
@@ -1147,7 +1147,7 @@ sub _count { # Separated out so pager can get the full count
     }
 
     $attrs->{select} = $group_by; 
-    $attrs->{from} = (ref $self)->new($self->result_source, $attrs)->cursor->as_query;
+    $attrs->{from} = [ { 'mesub' => (ref $self)->new($self->result_source, $attrs)->cursor->as_query } ];
   }
 
   $attrs->{select} = { count => '*' };