#12328: subqueries in django 1.1 behave oddly
---------------------------------------------------+------------------------
          Reporter:  wdoekes                       |         Owner:  
marcosmoyano
            Status:  assigned                      |     Milestone:  1.2        
 
         Component:  Database layer (models, ORM)  |       Version:  1.1        
 
        Resolution:                                |      Keywords:             
 
             Stage:  Accepted                      |     Has_patch:  1          
 
        Needs_docs:  0                             |   Needs_tests:  0          
 
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by Alex):

 Ok, the problem here is that you can't use LIMIT/OFFSET in a delete()
 query (look at the assert at the top), nesting this works around it, but
 clearly breaks the invariant that the query will return the same items on
 every execution (less those that have been deleted).  An extra count() on
 every delete is clearly unacceptable, so I'd have to say that we need a
 way to raise an exception here.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12328#comment:9>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to