On Wed, Aug 20, 2008 at 12:30 PM, akonsu <[EMAIL PROTECTED]> wrote: > > > consider the code below. it has two print statements at the end. their > output should be identical, but it is not. i think there is a bug. ... > print [p.x for p in Pair.objects.filter(y = y0, name = 'd')] > print y0.xs.filter(pair__name = 'd')
I'm pretty certain this is another manifestation of #8046. Looking at the SQL generated, the second case is doing a redundant join, which is resulting in the stray result. I've added a note on that ticket - thanks for the helpful test case. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---