diff options
author | Conrad Kramer <conrad@kramerapps.com> | 2016-04-25 16:30:48 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-04-27 09:30:55 -0400 |
commit | c11219833253d42d72f4a48a6c9e3a4944c27391 (patch) | |
tree | 3e8e6f104e4fa1f94dce207acf4e8f8f75838635 /django/contrib/postgres/operations.py | |
parent | 8ccb8ff453f8c3ba297bd8e108d81d76769bf8d2 (diff) | |
download | django-c11219833253d42d72f4a48a6c9e3a4944c27391.tar.gz |
Fixed #26542 -- Fixed quoting in CreateExtension operation.
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r-- | django/contrib/postgres/operations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py index 3bb81dc3f9..2a0a8402ed 100644 --- a/django/contrib/postgres/operations.py +++ b/django/contrib/postgres/operations.py @@ -14,10 +14,10 @@ class CreateExtension(Operation): def database_forwards(self, app_label, schema_editor, from_state, to_state): if schema_editor.connection.vendor != 'postgresql': return - schema_editor.execute("CREATE EXTENSION IF NOT EXISTS %s" % self.name) + schema_editor.execute("CREATE EXTENSION IF NOT EXISTS %s" % schema_editor.quote_name(self.name)) def database_backwards(self, app_label, schema_editor, from_state, to_state): - schema_editor.execute("DROP EXTENSION %s" % self.name) + schema_editor.execute("DROP EXTENSION %s" % schema_editor.quote_name(self.name)) def describe(self): return "Creates extension %s" % self.name |