From: Justin Hunter Date: Fri, 13 Mar 2009 07:10:52 +0000 (+0000) Subject: use proper format X-Git-Tag: v0.08103~101^2~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d48538e3c8d87f3273ac6ac9c0243d7b71a0713;p=dbsrgits%2FDBIx-Class.git use proper format --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index cffc524..99ce6ce 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -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 => '*' };