Opened 15 years ago

Closed 15 years ago

Last modified 13 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: 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)

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

Download all attachments as: .zip

Change History (8)

comment:1 by Russell Keith-Magee, 15 years ago

milestone: 1.2
Triage Stage: UnreviewedAccepted

comment:2 by Tim Kersten, 15 years ago

Cc: Tim Kersten added

comment:3 by Russell Keith-Magee, 15 years ago

Component: UncategorizedDatabase layer (models, ORM)

comment:4 by Russell Keith-Magee, 15 years ago

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 by Russell Keith-Magee, 15 years ago

(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 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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