Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#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: master
Severity: Keywords:
Cc: Tim Kersten Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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)

add_quote_name_to_constraint_identifier_1.1.1.patch (696 bytes) - added by Tim Kersten 7 years ago.
add_quote_name_to_constraint_identifier_r12411.patch (696 bytes) - added by Tim Kersten 7 years ago.

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by Tim Kersten

Changed 7 years ago by Tim Kersten

comment:1 Changed 7 years ago by Russell Keith-Magee

milestone: 1.2
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Tim Kersten

Cc: Tim Kersten added

comment:3 Changed 7 years ago by Russell Keith-Magee

Component: UncategorizedDatabase layer (models, ORM)

comment:4 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [12811]) Fixed #12850 -- Ensured that constraint names are quoted when they are removed. Thanks to Tim Kersten for the report and patch.

comment:5 Changed 7 years ago by Russell Keith-Magee

(In [12812]) [1.1.X] Fixed #12850 -- Ensured that constraint names are quoted when they are removed. Thanks to Tim Kersten for the report and patch.

Backport of r12811 from trunk.

comment:6 Changed 5 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top