Permalink
Browse files

A typo fix that fortunately wasn't creating invalid SQL, just slightl…

…y less

efficient than possible SQL in some odd cases (found via code inspection, not
any particular failing example).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent c7a10b6 commit 3cdfb47e9315672cdf06443b32feb62e1f0c0d42 @malcolmt malcolmt committed Sep 2, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/sql/query.py
@@ -738,7 +738,7 @@ def promote_alias(self, alias, unconditional=False):
Returns True if the join was promoted.
"""
if ((unconditional or self.alias_map[alias][NULLABLE]) and
- self.alias_map[alias] != self.LOUTER):
+ self.alias_map[alias][JOIN_TYPE] != self.LOUTER):
data = list(self.alias_map[alias])
data[JOIN_TYPE] = self.LOUTER
self.alias_map[alias] = tuple(data)

0 comments on commit 3cdfb47

Please sign in to comment.