#10181: EmptyResultSet exception
------------------------------------------------+---------------------------
 Reporter:  omat                                |       Owner:  nobody    
   Status:  new                                 |   Milestone:            
Component:  Database layer (models, ORM)        |     Version:  SVN       
 Keywords:  EmptyResultSet, ValuesListQuerySet  |       Stage:  Unreviewed
Has_patch:  0                                   |  
------------------------------------------------+---------------------------
 EmptyResultSet exception is fired in 'in' lookups, if the lookup is
 against an empty ValuesListQuerySet.

 {{{
 >>> ids = Tag.objects.filter(id__in=[]).values_list(id, flat=True)
 >>> Tag.objects.filter(id__in=ids)
 }}}

 ids is an empty ValuesListQuerySet, as expected. The second line raises
 EmptyResultSet exception, where I would expect an empty QuerySet instead.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10181>
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