DBIx::Class::ResultSet
A. $rs->count( {}, { group_by => 'age' } )
- SELECT COUNT( DISTINCT( age ) ) FROM ...
B. $rs->count( undef, { group_by => 'age' } )
- SELECT COUNT( * ) FROM ...
I thought there is no difference between {} and undef when no $cond.
After trace the sql statement, A works out what I want, but B not.
Is it a bug, or only {} is the right usage here?
--islue
_______________________________________________
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]/