[Dbix-class] Selecting max() of count()

BUNK (Jacob Bunk Nielsen) bunk at novozymes.com
Fri Aug 1 13:21:17 BST 2008


Iain Hubbard <iain.hubbard at gmgrd.co.uk> writes:
> On Fri, 2008-08-01 at 12:06 +0200, BUNK (Jacob Bunk Nielsen) wrote:
>> Perhaps, but it also ignores any mentioning of 'count'. This doesn't
>> seem logical to me. Do you have any idea why it ignores count?
>
> The max is obviously causing a problem, how about a different approach?
>
> ** untested **
> [ ... ]
> ** untested **
>
> Should get you the max count, but the method may not be to your liking.

This approach works. However, I don't like it very much. It doesn't have
the niceness factor I usually associate with dbix-class.

Best regards

Jacob



More information about the DBIx-Class mailing list