#6074: QOr doesn't handle two empty ResultSets correctly
-----------------------+----------------------------------------------------
Reporter:  Honza_Kral  |       Owner:  nobody          
  Status:  new         |   Component:  Database wrapper
 Version:  SVN         |    Keywords:  or Q sql        
   Stage:  Unreviewed  |   Has_patch:  0               
-----------------------+----------------------------------------------------
 {{{
 >>> from django.db.models import Q
 >>> from django.contrib.auth.models import User
 >>> User.objects.filter( Q( id__in=[] ) | Q( id__in=[] ) )
 }}}

 Should be empty queryset, but is not

 whe generated WHERE clause is empty, the problem seems to be around
 django/db/models/query.py:725

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