Fixed a case where column aliases weren't being quoted properly.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ian Kelly 2009-03-13 17:20:52 +00:00
parent 6309b40bc2
commit f725658299
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ class BaseQuery(object):
aliases.add(c_alias)
col_aliases.add(c_alias)
else:
result.append('%s AS %s' % (r, col[1]))
result.append('%s AS %s' % (r, qn2(col[1])))
aliases.add(r)
col_aliases.add(col[1])
else: