#29932: QuerySet.difference() after intersection() returns incorrect results on
SQLite and Oracle
-------------------------------------+-------------------------------------
Reporter: michaeldel | Owner: felixxm
Type: Bug | Status: assigned
Component: Database layer | Version: 2.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: queryset sqlite | Triage Stage: Accepted
difference intersection |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* owner: ChillarAnand => felixxm
* has_patch: 0 => 1
Comment:
Wrapping compound queries in a parentheses solves this issue on Oracle. It
is more complicated on SQLite because compound queries do not support
parentheses on SQLite and I think that the only solution is to wrap them
in a subquery.
[https://github.com/django/django/pull/10715 PR]
@ChillarAnand I hope you don't mind that I assigned this ticket to myself.
--
Ticket URL: <https://code.djangoproject.com/ticket/29932#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 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/068.036d40d6ea335637c241a67ce40bbf57%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.