Opened 10 years ago
Closed 10 years ago
#26542 closed Bug (fixed)
Extension names are not properly quoted in the PostgreSQL CreateExtension operation
| Reported by: | Conrad Kramer | Owned by: | |
|---|---|---|---|
| Component: | contrib.postgres | Version: | 1.9 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Running CreateExtension('uuid-ossp') in the current version of Django fails with a Postgres syntax error.
Attachments (1)
Change History (7)
by , 10 years ago
| Attachment: | 26542.diff added |
|---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 10 years ago
comment:4 by , 10 years ago
I went ahead and made the suggested change and proposed it as a pull request on Github.
Let me know if there are any other changes I should make!
comment:5 by , 10 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
Conrad, would you be able to propose your patch as a pull request on Github?
I think you could improve it a bit by using the
quote_namemethod instead of literal quotes.