Hi,

I am receiving an EmptyResultSet exception in 'in' lookups, if the
lookup is against an empty ValuesListQuerySet.

Here is the case:

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

Now the ids is an empty ValuesListQuerySet as expected. If I use it in
an 'in' lookup:

>>> Tag.objects.filter(id__in=ids)

This results in an EmptyResultSet exception, where I would expect an
empty QuerySet instead.

Am I missing something here?


Thanks...
oMat


ps: I am running the most recent SVN revision of Django on Mac OS X


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

Reply via email to