1 | diff -r -x '*.pyc' Django-1.2.3-py2.6.egg/django/db/models/sql/compiler.py Djangopatch/django/db/models/sql/compiler.py
|
---|
2 | 452c452
|
---|
3 | < alias, unused = self.query.table_alias(t)
|
---|
4 | ---
|
---|
5 | > alias, unused = self.query.table_alias(t, True)
|
---|
6 | 458c458,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))
|
---|
11 | diff -r -x '*.pyc' Django-1.2.3-py2.6.egg/django/db/models/sql/query.py Djangopatch/django/db/models/sql/query.py
|
---|
12 | 619c619
|
---|
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)
|
---|
16 | Only in Django-1.2.3-py2.6.egg/django/db/models/sql: .query.py.swp
|
---|