#12850 closed (fixed)
db constraint identifiers are not quoted consistantly, so are not case sensitive all the time. [patch] (1.1.1 & SVN)
Reported by: | Tim Kersten | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Tim Kersten | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When running "python manage.py sqlclear appname", the generated sql for dropping constrains doesn't include quotes, causing the sql to fail since they are quoted during creation. This is a very simple patch. This effects version 1.1 and SVN (currently 1.2 beta).
Attachments (2)
Change History (8)
by , 15 years ago
Attachment: | add_quote_name_to_constraint_identifier_1.1.1.patch added |
---|
by , 15 years ago
Attachment: | add_quote_name_to_constraint_identifier_r12411.patch added |
---|
comment:1 by , 15 years ago
milestone: | → 1.2 |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 15 years ago
Cc: | added |
---|
comment:3 by , 15 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
(In [12811]) Fixed #12850 -- Ensured that constraint names are quoted when they are removed. Thanks to Tim Kersten for the report and patch.