#36117: Composite primary key in Case statement evades right-hand side sanity
checking
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

 In [changeset:"1df0f998ae8d1626adaa9b807a43e4cbdfc590e2" 1df0f99]:
 {{{#!CommitTicketReference repository=""
 revision="1df0f998ae8d1626adaa9b807a43e4cbdfc590e2"
 [5.2.x] Fixed #36117 -- Raised ValueError when providing composite
 expressions to case / when.

 Remove redundant Case and When.resolve_expression to delegate composite
 expression support to BaseExpression.

 Thanks Jacob Tyler Walls for the report and test.

 Backport of 00c690efbc0b10f67924687f24a7b30397bf47d9 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36117#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701948d058679-4f574b0e-a669-4114-b086-1db60439e4b6-000000%40eu-central-1.amazonses.com.

Reply via email to