mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
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:
parent
6309b40bc2
commit
f725658299
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user