Ticket #11052: 11052.promote_alias_lhs.diff

File 11052.promote_alias_lhs.diff, 763 bytes (added by Johannes Dollinger, 15 years ago)

first stab

  • django/db/models/sql/query.py

     
    10741074
    10751075        Returns True if the join was promoted.
    10761076        """
    1077         if ((unconditional or self.alias_map[alias][NULLABLE]) and
     1077        nullable = self.alias_map[alias][NULLABLE]
     1078        lhs_alias = self.alias_map[alias][LHS_ALIAS]
     1079        if lhs_alias:
     1080            nullable = nullable or self.alias_map[lhs_alias][NULLABLE]
     1081        if ((unconditional or nullable) and
    10781082                self.alias_map[alias][JOIN_TYPE] != self.LOUTER):
    10791083            data = list(self.alias_map[alias])
    10801084            data[JOIN_TYPE] = self.LOUTER
Back to Top