[dev] Horde_Rdo - DISTINCT query

Luis Felipe Marzagao lfbm.andamentos at gmail.com
Tue Sep 20 03:33:25 UTC 2011


Em 16/09/11 07:55, Jan Schneider escreveu:
>
> Zitat von Luis Felipe Marzagao/Andamentos <lfbm.andamentos at gmail.com>:
>
>> Hello:
>>
>> Is this the recommended way of running a SELECT DISTINCT query with 
>> Horde Rdo?
>>
>> $mapper = new OrderMapper();
>>
>> $query = new Horde_Rdo_Query($mapper);
>> $query->setFields('DISTINCT client_id');
>>
>> $mapper->find($query);
>
> That's more like a hack. We should add some feature to Horde_Rdo_Query 
> instead that makes a query DISTINCT.
>
> Jan.
>
Here´s a suggestion:

http://bugs.horde.org/ticket/10535

Luis Felipe.


More information about the dev mailing list