<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/db/models/sql/where.py, branch stable/5.2.x</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=stable%2F5.2.x</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=stable%2F5.2.x'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2025-02-15T16:48:53Z</updated>
<entry>
<title>[5.2.x] Refs #36181 -- Removed the obsolete SubqueryConstraint machinery.</title>
<updated>2025-02-15T16:48:53Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2025-02-15T16:48:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c80c81163e0d31aefc82eafef2b4807cde6ab0b5'/>
<id>urn:sha1:c80c81163e0d31aefc82eafef2b4807cde6ab0b5</id>
<content type='text'>
Adding proper support for subquery right-hand-sides to TupleIn made it
obsolete.

Backport of d386405e04dac50656af50d100a14efdf8c58e8f from main

Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;</content>
</entry>
<entry>
<title>Applied Black's 2024 stable style.</title>
<updated>2024-01-26T11:45:07Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-01-26T11:45:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=305757aec19c9d5111e4d76095ae0acd66163e4b'/>
<id>urn:sha1:305757aec19c9d5111e4d76095ae0acd66163e4b</id>
<content type='text'>
https://github.com/psf/black/releases/tag/24.1.0</content>
</entry>
<entry>
<title>Refs #35102 -- Optimized replace_expressions()/relabelling aliases by adding early return.</title>
<updated>2024-01-15T04:56:38Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-01-13T19:33:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=f3d10546a850df4fe3796f972d5b7e16adf52f54'/>
<id>urn:sha1:f3d10546a850df4fe3796f972d5b7e16adf52f54</id>
<content type='text'>
This avoids costly hashing.

Thanks Anthony Shaw for the report.

Co-Authored-By: Simon Charette &lt;charette.s@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fixed #34604 -- Corrected fallback SQL for n-ary logical XOR.</title>
<updated>2023-06-08T18:41:18Z</updated>
<author>
<name>Anders Kaseorg</name>
<email>andersk@mit.edu</email>
</author>
<published>2023-05-30T04:59:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=b81e974e9ea16bd693b194a728f77fb825ec8e54'/>
<id>urn:sha1:b81e974e9ea16bd693b194a728f77fb825ec8e54</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fixed #28477 -- Stripped unused annotations on aggregation.</title>
<updated>2022-11-09T12:22:14Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2022-11-06T04:28:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=59bea9efd2768102fc9d3aedda469502c218e9b7'/>
<id>urn:sha1:59bea9efd2768102fc9d3aedda469502c218e9b7</id>
<content type='text'>
Also avoid an unnecessary pushdown when aggregating over a query that doesn't
have aggregate annotations.
</content>
</entry>
<entry>
<title>Refs #33374 -- Adjusted full match condition handling.</title>
<updated>2022-11-07T19:23:53Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2022-11-06T16:19:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=76e37513e22f4d9a01c7f15eee36fe44388e6670'/>
<id>urn:sha1:76e37513e22f4d9a01c7f15eee36fe44388e6670</id>
<content type='text'>
Adjusting WhereNode.as_sql() to raise an exception when encoutering a
full match just like with empty matches ensures that all case are
explicitly handled.
</content>
</entry>
<entry>
<title>Refs #30158 -- Removed alias argument for Expression.get_group_by_cols().</title>
<updated>2022-10-06T10:04:00Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2022-09-28T14:51:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c6350d594c359151ee17b0c4f354bb44f28ff69e'/>
<id>urn:sha1:c6350d594c359151ee17b0c4f354bb44f28ff69e</id>
<content type='text'>
Recent refactors allowed GROUP BY aliasing allowed for aliasing to be
entirely handled by the sql.Query.set_group_by and compiler layers.
</content>
</entry>
<entry>
<title>Fixed #34024 -- Fixed crash when aggregating querysets with Q objects annotations.</title>
<updated>2022-09-23T14:15:03Z</updated>
<author>
<name>David Sanders</name>
<email>shang.xiao.sanders@gmail.com</email>
</author>
<published>2022-09-23T14:15:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1674c70525bc370132a1db27617e468081920d11'/>
<id>urn:sha1:1674c70525bc370132a1db27617e468081920d11</id>
<content type='text'>
This reverts b64db05b9cedd96905d637a2d824cbbf428e40e7.

It was reasonable to assume it was unnecessary code as there were
no failing tests upon its removal. This commit adds the necessary
regression tests for the failing condition identified in #34024
alongside the original tests added in the PR for which
WhereNode.is_summary was introduced.</content>
</entry>
<entry>
<title>Refs #28333 -- Added partial support for filtering against window functions.</title>
<updated>2022-08-15T06:26:26Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2022-08-10T12:22:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=f387d024fc75569d2a4a338bfda76cc2f328f627'/>
<id>urn:sha1:f387d024fc75569d2a4a338bfda76cc2f328f627</id>
<content type='text'>
Adds support for joint predicates against window annotations through
subquery wrapping while maintaining errors for disjointed filter
attempts.

The "qualify" wording was used to refer to predicates against window
annotations as it's the name of a specialized Snowflake extension to
SQL that is to window functions what HAVING is to aggregates.

While not complete the implementation should cover most of the common
use cases for filtering against window functions without requiring
the complex subquery pushdown and predicate re-aliasing machinery to
deal with disjointed predicates against columns, aggregates, and window
functions.

A complete disjointed filtering implementation should likely be
deferred until proper QUALIFY support lands or the ORM gains a proper
subquery pushdown interface.
</content>
</entry>
<entry>
<title>Refs #32948 -- Added Node.__copy__().</title>
<updated>2022-07-27T08:06:24Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2021-07-20T16:23:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=19b866c254b54d904a942f34d662dfacd9005a77'/>
<id>urn:sha1:19b866c254b54d904a942f34d662dfacd9005a77</id>
<content type='text'>
This allows the copy.copy() usage in the Q._combine() method to finish
sooner, instead of having to fallback to using the __reduce_ex__(4)
method.

Thia also avoids having to fall into copy.copy() at in Q._combine(),
when combining a Q() with another Q().

Co-authored-by: Keryn Knight &lt;keryn@kerynknight.com&gt;
</content>
</entry>
</feed>
