mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #34604 -- Corrected fallback SQL for n-ary logical XOR.
An n-ary logical XOR Q(…) ^ Q(…) ^ … ^ Q(…) should evaluate to true when an odd number of its operands evaluate to true, not when exactly one operand evaluates to true.
This commit is contained in:
committed by
Mariusz Felisiak
parent
ee36e101e8
commit
b81e974e9e
@@ -424,6 +424,11 @@ Miscellaneous
|
||||
a page. Having two ``<h1>`` elements was confusing and the site header wasn't
|
||||
helpful as it is repeated on all pages.
|
||||
|
||||
* On databases without native support for the SQL ``XOR`` operator, ``^`` as
|
||||
the exclusive or (``XOR``) operator now returns rows that are matched by an
|
||||
odd number of operands rather than exactly one operand. This is consistent
|
||||
with the behavior of MySQL, MariaDB, and Python.
|
||||
|
||||
.. _deprecated-features-5.0:
|
||||
|
||||
Features deprecated in 5.0
|
||||
|
||||
Reference in New Issue
Block a user