#36398: select_for_update(of=...) ignores "self" when using values_list() when
not
selecting a column from the model
-------------------------------------+-------------------------------------
Reporter: OutOfFocus4 | Type:
| Uncategorized
Status: new | Component: Database
| layer (models, ORM)
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
As of the most recent version of Django, if a queryset uses
`values_list(...)` and `select_for_update(of=("self", ...))`, and the
resulting SQL contains a nullable join, the resulting SQL will cause a
database error if none of the values in `values_list(...)` involve columns
from the queryset's model's table.
--
Ticket URL: <https://code.djangoproject.com/ticket/36398>
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/01070196d4321233-19464152-9933-4453-8633-584cee918239-000000%40eu-central-1.amazonses.com.