#29865: Add XOR for use in Q Queries
-------------------------------------+-------------------------------------
Reporter: Griffith Rees | Owner: Ryan
| Heard
Type: New feature | Status: assigned
Component: Database layer | Version: 2.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: xor | Triage Stage:
| Someday/Maybe
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Ryan Heard):
After careful consideration I have decided not to raise a `TypeError` on
unsupported backends, and instead convert on the fly from `A XOR B` to `(A
OR B) AND NOT (A AND B)`.
MySQL will still take advantage of logical XOR.
--
Ticket URL: <https://code.djangoproject.com/ticket/29865#comment:9>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/063.44344f03e17402fce233fc211b3fb515%40djangoproject.com.