[Dbix-class] Dbix-class Digest, Vol 15, Issue 3

Matt S Trout dbix-class at trout.me.uk
Fri Sep 8 20:24:41 CEST 2006


Nathan Lewis wrote:
> Hi Everyone,
> 
> Appologies in advance if this is a stupid and/or frequently asked
> question but what is the correct syntax for Select of 'COUNT( * )' right
> now?
> 
> In Version 0.07000
> 
> I have tried 
> 
> $rs->search(undef,
>   	{ select => ['status', { count => 'me.tableid' }],
>      group_by => [qw/date(timestamp) status/] });
> 
> As per the docs, or my understanding of them, but I just get

What's wrong with $rs->count?

Also, please don't reply to digests.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Dbix-class mailing list