diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2013-12-27 15:40:52 -0800 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2013-12-27 15:40:52 -0800 |
| commit | 61cfcec5b7d47232a1d6facbde71d4cca35986eb (patch) | |
| tree | e4c87481b0e874b37c94335dfcd16bc3a53e1d20 /django | |
| parent | 14bcbd9937f50ec21196dbb2bc3126e6a4427b37 (diff) | |
| parent | 3efd1b8b939c0a600b2d63317d224ebaab766f01 (diff) | |
Merge pull request #2120 from ramiro/schema-creation-quoting
Fixed #21692 -- Quote table name when creating it.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/schema.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/schema.py b/django/db/backends/schema.py index e33956763c..5ac8d51a3d 100644 --- a/django/db/backends/schema.py +++ b/django/db/backends/schema.py @@ -227,7 +227,7 @@ class BaseDatabaseSchemaEditor(object): }) # Make the table sql = self.sql_create_table % { - "table": model._meta.db_table, + "table": self.quote_name(model._meta.db_table), "definition": ", ".join(column_sqls) } self.execute(sql, params) |
