From: Peter Rabbitson Date: Wed, 20 May 2009 10:44:54 +0000 (+0000) Subject: detect/purge having bind for compeleteness X-Git-Tag: v0.08103~56 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b57a28ad8e46727d368f3924de2bc461036b8a6;p=dbsrgits%2FDBIx-Class.git detect/purge having bind for compeleteness --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 19a71aa..ac275fc 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1155,7 +1155,7 @@ sub count { return $self->search(@_)->count if @_ and defined $_[0]; return scalar @{ $self->get_cache } if $self->get_cache; - my @subq_attrs = qw/prefetch collapse group_by having/; + my @subq_attrs = qw/prefetch collapse group_by having having_bind/; # if we are not paged - we are simply asking for a limit if (not $self->{attrs}{page} and not $self->{attrs}{software_limit}) {