mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue