Opened 6 years ago

Last modified 6 years ago

#29694 closed Bug

QuerySet.values_list() combined with .extra() or .annotate() may produce wrong .union() — at Version 2

Reported by: master Owned by: nobody
Component: Database layer (models, ORM) Version: 2.1
Severity: Normal Keywords: union values_list
Cc: Mariusz Felisiak Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

This is a revival of #29229, as a regression introduced in 2.0.5 and 1.11.13 by #29286.

Please refer to the demo code in the description of #29229.

Change History (2)

comment:1 by Carlton Gibson, 6 years ago

Resolution: duplicate
Status: newclosed

Please don't deliberately open duplicate tickets.

If there is still an issue on #29229, please comment there.

See the test case introduced in a0c03c62a8ac586e5be5b21393c925afa581efaf. Can you adjust this to demonstrate the issue you are still seeing? If so, we can re-open #29229 and address this.

(Either way we need some information to go on as to how to replicate the issue you are seeing. As far as we were aware the issue in the original description was already resolved...)

comment:2 by Tim Graham, 6 years ago

Description: modified (diff)
Resolution: duplicate
Status: closednew
Triage Stage: UnreviewedAccepted

Since a fix for that ticket has been released, it's appropriate to open a new ticket. It seems that the test that was added in the patch doesn't precisely reflect the steps to reproduce.

Note: See TracTickets for help on using tickets.
Back to Top