Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit f7256582990652c3a18fb784eb7360c47f9fb154 1 parent 6309b40
@ikelly ikelly authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/sql/query.py
View
2  django/db/models/sql/query.py
@@ -579,7 +579,7 @@ def get_columns(self, with_aliases=False):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.