diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-09-02 00:50:19 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-09-02 00:50:19 +0000 |
| commit | 3cdfb47e9315672cdf06443b32feb62e1f0c0d42 (patch) | |
| tree | 681085856741d78cbbc9b989db9934b7d3c91946 /django/db/models/sql/query.py | |
| parent | c7a10b677d51d5f76491011702e08588c9c63777 (diff) | |
A typo fix that fortunately wasn't creating invalid SQL, just slightly 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
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index edaa223808..f15e4ac2f2 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -738,7 +738,7 @@ class Query(object): 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) |
