[Tickets #10535] Re: DISTINCT sql query feature in Horde/Rdo/Query.php

bugs at horde.org bugs at horde.org
Thu Sep 22 04:04:47 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10535
------------------------------------------------------------------------------
  Ticket             | 10535
  Updated By         | lfbm.andamentos at gmail.com
  Summary            | DISTINCT sql query feature in Horde/Rdo/Query.php
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Enhancement
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | 0003-Added-sql-DISTINCT-query-feature.patch
------------------------------------------------------------------------------


lfbm.andamentos at gmail.com (2011-09-22 04:04) wrote:

My bad. I didn´t notice there was a magic __call method on  
Adapter/Base delegating calls to the Schema.

Attached is another patch.

The adapter->distinct() method should be called with proper arguments,  
so it knows when ORDER BY clause is also present in the query (which  
changes the DISTINCT clause a little bit for postgresql, for example).



lfbm.andamentos at gmail.com (2011-09-22 04:04) uploaded:  
0003-Added-sql-DISTINCT-query-feature.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=0003-Added-sql-DISTINCT-query-feature.patch&ticket=10535&fn=%2F0003-Added-sql-DISTINCT-query-feature.patch





More information about the bugs mailing list