Ticket #12890: extra-tables-1.2.3.patch

File extra-tables-1.2.3.patch, 847 bytes (added by daveycrockett, 14 years ago)

Proposed bug fix?

Line 
1diff -r -x '*.pyc' Django-1.2.3-py2.6.egg/django/db/models/sql/compiler.py Djangopatch/django/db/models/sql/compiler.py
2452c452
3< alias, unused = self.query.table_alias(t)
4---
5> alias, unused = self.query.table_alias(t, True)
6458c458,459
7< result.append('%s%s' % (connector, qn(alias)))
8---
9> alias_str = (alias != t and ' %s' % alias or '')
10> result.append('%s%s%s' % (connector, qn(t), alias_str))
11diff -r -x '*.pyc' Django-1.2.3-py2.6.egg/django/db/models/sql/query.py Djangopatch/django/db/models/sql/query.py
12619c619
13< alias = '%s%d' % (self.alias_prefix, len(self.alias_map) + 1)
14---
15> alias = '%s%d' % (self.alias_prefix, sum([len(li) for li in self.table_map.values()]) + 1)
16Only in Django-1.2.3-py2.6.egg/django/db/models/sql: .query.py.swp
Back to Top