Author: mtredinnick
Date: 2008-09-01 19:50:19 -0500 (Mon, 01 Sep 2008)
New Revision: 8831

Modified:
   django/trunk/django/db/models/sql/query.py
Log:
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).


Modified: django/trunk/django/db/models/sql/query.py
===================================================================
--- django/trunk/django/db/models/sql/query.py  2008-09-02 00:26:28 UTC (rev 
8830)
+++ django/trunk/django/db/models/sql/query.py  2008-09-02 00:50:19 UTC (rev 
8831)
@@ -738,7 +738,7 @@
         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)


--~--~---------~--~----~------------~-------~--~----~
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