1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

queryset-refactor: Create a new join when merging two QuerySets that use a 1-m

field.


git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-10-14 02:14:53 +00:00
parent 8926b431ed
commit 142e400c5c
2 changed files with 21 additions and 12 deletions

View File

@@ -81,11 +81,8 @@ Bug #1801
[<Author: a2>]
>>> Author.objects.filter(item=i3)
[<Author: a2>]
# FIXME: When we join these queries, we MUST NOT share the table joins. this is
# the case for all m-to-m and 1-to-m joins (but m-to-1 is fine).
# >>> Author.objects.filter(item=i2) & Author.objects.filter(item=i3)
# [<Author: a2>]
>>> Author.objects.filter(item=i2) & Author.objects.filter(item=i3)
[<Author: a2>]
Bug #2306
Checking that no join types are "left outer" joins.