Opened 19 years ago
Closed 19 years ago
#3822 closed (fixed)
core.management.get_indexes_for_model does not quote index names
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | dev |
| Severity: | Keywords: | sqlindexes | |
| 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
If you're model's column names require quoting, the chances are high that the auto-generated index names will also require quoting (this bit me with a column named "user@realm").
Without this patch, manage.py sqlindexes (and the other functions which implicitly call core.management.get_indexs_for_model) may generate invalid output.
Attachments (1)
Change History (3)
by , 19 years ago
| Attachment: | quote_index.diff added |
|---|
comment:1 by , 19 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
comment:2 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch