#36852: postgres.contrib.ExclusionContraint __eq__ incorrectly considers index_type
case
-------------------------------------+-------------------------------------
Reporter: haki | Owner: haki
Type: Bug | Status: assigned
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The equality check for `ExclusionContraint` in
`postgres.contrib.ExclusionContraint` stores the index_type in the
provided case, but the equality check compares the string without
normalizing the case.
Unlike other props like condition where case might be important, the case
of `index_type` (currently 'gist', 'spgist', and soon 'hash') is not
significant, therefor should be ignored in equality checks.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36852>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.