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/ +
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/