Skip to content

Commit

Permalink
Fixed a case where column aliases weren't being quoted properly.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
nightflyerkilo committed Mar 13, 2009
1 parent 6309b40 commit f725658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/sql/query.py
Expand Up @@ -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:
Expand Down

0 comments on commit f725658

Please sign in to comment.