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:
Russell Keith-Magee 2006-02-11 03:15:36 +00:00
parent d43d498ba2
commit 111dadafb0
1 changed files with 1 additions and 1 deletions

View File

@ -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)