<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/db/models/sql/compiler.py, branch 5.1.14</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=5.1.14</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=5.1.14'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2024-08-02T19:22:05Z</updated>
<entry>
<title>[5.1.x] Fixed #35643 -- Fixed a crash when ordering a QuerySet by a reference containing "__".</title>
<updated>2024-08-02T19:22:05Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-08-02T19:21:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=55f529270125e17bf428585734dbcb33332a46de'/>
<id>urn:sha1:55f529270125e17bf428585734dbcb33332a46de</id>
<content type='text'>
Regression in b0ad41198b3e333f57351e3fce5a1fb47f23f376.

Refs #34013. The initial logic did not consider that annotation aliases
can include lookup or transform separators.

Thanks Gert Van Gool for the report and Mariusz Felisiak for the review.
Backport of a16f13a8661297eda12c4177bb01fa2e5b5ccc56 from main.
</content>
</entry>
<entry>
<title>Refs #35356 -- Clarified select related with masked field logic.</title>
<updated>2024-04-23T16:17:17Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-04-06T03:20:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=195d885ca01b14e3ce9a1881c3b8f7074f953736'/>
<id>urn:sha1:195d885ca01b14e3ce9a1881c3b8f7074f953736</id>
<content type='text'>
By always including related objects in the select mask via adjusting the
defer logic (_get_defer_select_mask()), it becomes possible for
select_related_descend() to treat forward and reverse relationships
indistinctively.

This work also simplifies and adds comments to
select_related_descend() to make it easier to understand.
</content>
</entry>
<entry>
<title>Fixed #35356 -- Deferred self-referential foreign key fields adequately.</title>
<updated>2024-04-23T16:17:17Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-04-06T03:08:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=83f5478225588f31e7cbbfed63a4a2b936abc03f'/>
<id>urn:sha1:83f5478225588f31e7cbbfed63a4a2b936abc03f</id>
<content type='text'>
While refs #34612 surfaced issues with reverse one-to-one fields
deferrals, it missed that switching to storing remote fields would break
self-referential relationships.

This change switches to storing related objects in the select mask
instead of remote fields to prevent collisions when dealing with
self-referential relationships that might have a different directional
mask.

Despite fixing #21204 introduced a crash under some self-referential
deferral conditions, it was simply not working even before that as it
aggregated the sets of deferred fields by model.

Thanks Joshua van Besouw for the report and Mariusz Felisiak for the
review.
</content>
</entry>
<entry>
<title>Fixed #35294 -- Fixed TEXT format of QuerySet.explain() for long plans.</title>
<updated>2024-03-15T05:58:14Z</updated>
<author>
<name>Adam Johnson</name>
<email>me@adamj.eu</email>
</author>
<published>2024-03-13T18:10:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=cbf1e87398a58737e27e1b680283903caf661f90'/>
<id>urn:sha1:cbf1e87398a58737e27e1b680283903caf661f90</id>
<content type='text'>
co-authored-by: Gordon &lt;gordon.wrigley@gmail.com&gt;
co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fixed #35241 -- Cached model's full parent list.</title>
<updated>2024-02-26T04:38:31Z</updated>
<author>
<name>Adam Johnson</name>
<email>me@adamj.eu</email>
</author>
<published>2024-02-23T22:50:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=73d5eb808435bcf27ebc935847196ac9e97b6ddc'/>
<id>urn:sha1:73d5eb808435bcf27ebc935847196ac9e97b6ddc</id>
<content type='text'>
co-authored-by: Keryn Knight &lt;keryn@kerynknight.com&gt;
co-authored-by: Natalia &lt;124304+nessita@users.noreply.github.com&gt;
co-authored-by: David Smith &lt;smithdc@gmail.com&gt;
co-authored-by: Paolo Melchiorre &lt;paolo@melchiorre.org&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>Fixed #34013 -- Added QuerySet.order_by() support for annotation transforms.</title>
<updated>2023-12-12T04:51:33Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2023-12-08T07:03:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=b0ad41198b3e333f57351e3fce5a1fb47f23f376'/>
<id>urn:sha1:b0ad41198b3e333f57351e3fce5a1fb47f23f376</id>
<content type='text'>
Thanks Eugene Morozov and Ben Nace for the reports.
</content>
</entry>
<entry>
<title>Fixed #35024 -- Fixed model instance creation crash on GeneratedField.output_field with backend converters.</title>
<updated>2023-12-07T19:50:18Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-12-07T19:50:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5b3b791e9046461901df3898be8544e14d91b931'/>
<id>urn:sha1:5b3b791e9046461901df3898be8544e14d91b931</id>
<content type='text'>
Regression in d9de74141e8a920940f1b91ed0a3ccb835b55729.

This is a long standing issue, however it caused a crash of
GeneratedFields for all output fields that have backend-specific
converters when the RETURNING clause is not supported
(MySQL and SQLite &lt; 3.35).
That's why severity was exacerbated.</content>
</entry>
<entry>
<title>Fixed #34967 -- Fixed queryset crash when grouping by constants on SQLite &lt; 3.39.</title>
<updated>2023-11-13T11:01:40Z</updated>
<author>
<name>David Sanders</name>
<email>shang.xiao.sanders@gmail.com</email>
</author>
<published>2023-11-12T13:45:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=b863c5ffde0bafa5eaa9f262103eaeb71877787c'/>
<id>urn:sha1:b863c5ffde0bafa5eaa9f262103eaeb71877787c</id>
<content type='text'>
On SQLite &lt; 3.39, this forces a GROUP BY clause with a HAVING clause
when no grouping is specified.

Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fixed #34580 -- Avoided unnecessary computation of selected expressions in SQLCompiler.</title>
<updated>2023-05-22T03:47:29Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2023-05-21T15:59:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=98f6ada0e2058d67d91fb6c16482411ec2ca0967'/>
<id>urn:sha1:98f6ada0e2058d67d91fb6c16482411ec2ca0967</id>
<content type='text'>
Performance regression in 278881e37619278789942513916acafaa88d26f3.

Co-authored-by: David Smith &lt;smithdc@gmail.com&gt;
</content>
</entry>
</feed>
