#27862: Exists() feature generates invalid SQL query on postgres backend
-------------------------------------+-------------------------------------
Reporter: Vasily Stepanov | Owner: Matthew
| Schinckel
Type: Bug | Status: closed
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: Queryset Subquery | Triage Stage: Ready for
Exists | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"2864bb3ba6576cbd2676052344a445a6616a6679" 2864bb3]:
{{{
#!CommitTicketReference repository=""
revision="2864bb3ba6576cbd2676052344a445a6616a6679"
[1.11.x] Fixed #27862 -- Fixed incorrectly quoted table aliases in
Subquery SQL.
Add aliases from resolved querysets to the parent query's external
aliases to prevent those aliases from being quoted.
Thanks to Vasily Stepanov for the report and Tim Graham for the review.
Backport of f48bc7c3dbd204eefb3c19016b1e4906ac26bee3 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27862#comment:10>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.552110487af632f03a2d07f895dfd069%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.