#12822: DatabaseError: aggregates not allowed in WHERE clause
--------------------------------------+-------------------------------------
          Reporter:  mat              |         Owner:  tobias
            Status:  assigned         |     Milestone:  1.2   
         Component:  ORM aggregation  |       Version:  SVN   
        Resolution:                   |      Keywords:        
             Stage:  Accepted         |     Has_patch:  0     
        Needs_docs:  0                |   Needs_tests:  0     
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by tobias):

 Okay.. so the issue is more complex than originally thought.  It does
 exist in 1.1, but was hidden in certain cases (namely, when the queryset
 to be used as a subquery was not evaluated prior to being used as a
 subquery).  Attaching a patch with two tests demonstrating the issue.  In
 1.1, the first test passes, while the second one fails.  In 1.2, both
 tests fail.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12822#comment:5>
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