#36416: id_list argument to in_bulk() does not account for composite primary 
keys
when batching
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Jacob
                                     |  Walls
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls):

 (And yes, the draft test provided with the ticket is hanging on `main` for
 me: when CTRL-C'ing out of the hang, you can see from the trace that the
 issue is #36380.)

 The draft test on the ticket fails on 5.2.1 if you make adjust it to run:
 - provide `user=self.user` in the `Comment(...` instantiation
 - on SQLite: adjust `num_requiring_batching` to circa 999 to see
 `OperationalError` because below Django 6.0 `max_query_params` is too
 protective (#36143)
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36416#comment:5>
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/010701970d50e392-de41feb0-622a-46b5-b145-b6bcfe438626-000000%40eu-central-1.amazonses.com.

Reply via email to