having without group_by is useless - thus do not supply a group_by on count, let...
Peter Rabbitson [Thu, 4 Jun 2009 20:54:28 +0000 (20:54 +0000)]
lib/DBIx/Class/ResultSet.pm

index ab04d69..4ab4afa 100644 (file)
@@ -1155,7 +1155,7 @@ sub count {
   return $self->search(@_)->count if @_ and defined $_[0];
   return scalar @{ $self->get_cache } if $self->get_cache;
 
-  my $meth = $self->_has_attr (qw/prefetch collapse distinct group_by having/) 
+  my $meth = $self->_has_attr (qw/prefetch collapse distinct group_by/)
     ? 'count_grouped'
     : 'count'
   ;