Ticket #7055: join_alias_no_as.diff
File join_alias_no_as.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/db/models/sql/query.py
420 420 if not self.alias_refcount[alias]: 421 421 continue 422 422 name, alias, join_type, lhs, lhs_col, col, nullable = self.alias_map[alias] 423 alias_str = (alias != name and ' AS%s' % alias or '')423 alias_str = (alias != name and ' %s' % alias or '') 424 424 if join_type and not first: 425 425 result.append('%s %s%s ON (%s.%s = %s.%s)' 426 426 % (join_type, qn(name), alias_str, qn(lhs), -
django/db/models/sql/subqueries.py
361 361 """ 362 362 def get_from_clause(self): 363 363 result, params = self._query.as_sql() 364 return ['(%s) A S A1' % result], params364 return ['(%s) A1' % result], params 365 365 366 366 def get_ordering(self): 367 367 return ()