magic-removal: Fixed a problem with query join order caused by a join dictionary being instantiated as a dict(), rather than a SortedDict().
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d43d498ba2
commit
111dadafb0
|
@ -453,7 +453,7 @@ class QOperator:
|
|||
self.args = args
|
||||
|
||||
def get_sql(self, opts):
|
||||
tables, joins, where, params = [], {}, [], []
|
||||
tables, joins, where, params = [], SortedDict(), [], []
|
||||
for val in self.args:
|
||||
tables2, joins2, where2, params2 = val.get_sql(opts)
|
||||
tables.extend(tables2)
|
||||
|
|
Loading…
Reference in New Issue