#36248: Bulk deletion of model referred to by a SET_NULL key can exceed 
parameter
limit
-------------------------------------+-------------------------------------
     Reporter:  bobince              |                    Owner:  bobince
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  5.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Sage Abdullah):

 * cc: Sage Abdullah (added)

Comment:

 I also noticed this issue when I was testing https://github.com/django
 /django-docker-box/pull/50#discussion_r1933066031 with a low enough value
 for `SQLITE_MAX_VARIABLE_NUMBER`. Some tests that do
 `ContentType.objects.all().delete()` would fail with a similar error, and
 I think I tried hacking a similar solution to yours but I wasn't sure if
 that was the right approach as I'm not familiar with the deletion code.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36248#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/01070197369ff95e-ec5ae076-9077-4175-aa57-2a445255fac4-000000%40eu-central-1.amazonses.com.

Reply via email to