#6422: Support for 'DISTINCT ON' queries with QuerySet.distinct()
----------------------------------------------------------------------+-----
          Reporter:  Manfred Wassmann <[email protected]>  |         
Owner:  nobody
            Status:  new                                              |     
Milestone:        
         Component:  Database layer (models, ORM)                     |       
Version:  SVN   
        Resolution:                                                   |      
Keywords:        
             Stage:  Accepted                                         |     
Has_patch:  1     
        Needs_docs:  1                                                |   
Needs_tests:  1     
Needs_better_patch:  1                                                |  
----------------------------------------------------------------------+-----
Comment (by ikelly):

 The current patch also doesn't work with Oracle, which doesn't support the
 "DISTINCT ON" syntax and requires an analytic query for this purpose.  I
 tried coding that up some time ago, but I found that the query
 architecture didn't really lend itself well to using analytic functions.
 That was before the sql compiler refactor, so I'll have to give it another
 look.  It may be easier now.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6422#comment:12>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to