Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 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: timkersten Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: timkersten 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 timkersten 4 years ago.
add_quote_name_to_constraint_identifier_r12411.patch (696 bytes) - added by timkersten 4 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 4 years ago by russellm

  • milestone set to 1.2
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by timkersten

  • Cc timkersten added

comment:3 Changed 4 years ago by russellm

  • Component changed from Uncategorized to Database layer (models, ORM)

comment:4 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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 4 years ago by russellm

(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 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.