diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-04-16 02:58:45 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-04-16 02:58:45 +0000 |
| commit | 96d643548e7c161590b66ef893eafde5f7f35bcc (patch) | |
| tree | d5f56a0d5ab804486d0d53d580639aabc1ee3eeb | |
| parent | f2b64c0c4e6e004e56ce2404b280052fafc11d67 (diff) | |
queryset-refactor: Added some missed quoting to a table name.
(Noticed in passing in the patch on #6596). Refs #6596.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/sql/subqueries.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/subqueries.py b/django/db/models/sql/subqueries.py index 6b3ef5ae40..9b5b9ba0f6 100644 --- a/django/db/models/sql/subqueries.py +++ b/django/db/models/sql/subqueries.py @@ -24,7 +24,7 @@ class DeleteQuery(Query): """ assert len(self.tables) == 1, \ "Can only delete from one table at a time." - result = ['DELETE FROM %s' % self.tables[0]] + result = ['DELETE FROM %s' % self.quote_name_unless_alias(self.tables[0])] where, params = self.where.as_sql() result.append('WHERE %s' % where) return ' '.join(result), tuple(params) |
