#36464: TupleIn lookup uses tuple containment even if the supports_tuple_lookups
feature is disabled for right-hand-side subqueries
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  composite primary    |             Triage Stage:  Ready for
  key                                |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"192bc7a7be92e20cc250907fb4083df689715679" 192bc7a7]:
 {{{#!CommitTicketReference repository=""
 revision="192bc7a7be92e20cc250907fb4083df689715679"
 Fixed #36464 -- Fixed "__in" tuple lookup on backends lacking native
 support.

 When native support for tuple lookups is missing in a DB backend, it can
 be emulated with an EXISTS clause. This is controlled by the backend
 feature flag "supports_tuple_lookups".

 The mishandling of subquery right-hand side in `TupleIn` (added to
 support `CompositePrimaryKey` in Refs #373) was likely missed because
 the only core backend we test with the feature flag disabled
 (Oracle < 23.4) supports it natively.

 Thanks to Nandana Raol for the report, and to Sarah Boyce, Jacob Walls,
 and Natalia Bidart for reviews.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36464#comment:12>
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/01070197c31fcb4c-f018bcef-87b1-4edc-bbea-32cc7e8dca67-000000%40eu-central-1.amazonses.com.

Reply via email to