<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/db/models/sql/compiler.py, branch 3.2.24</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=3.2.24</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=3.2.24'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2021-04-27T08:35:42Z</updated>
<entry>
<title>[3.2.x] Refs #32682 -- Fixed QuerySet.delete() crash on querysets with self-referential subqueries on MySQL.</title>
<updated>2021-04-27T08:35:42Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-04-27T07:53:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7ad7034054c10bfa919ceec4623fa7f30a68bba2'/>
<id>urn:sha1:7ad7034054c10bfa919ceec4623fa7f30a68bba2</id>
<content type='text'>
Backport of 4074f38e1dcc93b859bbbfd6abd8441c3bca36b3 from main
</content>
</entry>
<entry>
<title>[3.2.x] Fixed #32627 -- Fixed QuerySet.values()/values_list() crash on combined querysets ordered by unannotated columns.</title>
<updated>2021-04-13T04:16:19Z</updated>
<author>
<name>Iuri de Silvio</name>
<email>iurisilvio@gmail.com</email>
</author>
<published>2021-04-08T19:31:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=b245845575154905701a71d34a4d0c4d21f2f6b3'/>
<id>urn:sha1:b245845575154905701a71d34a4d0c4d21f2f6b3</id>
<content type='text'>
Backport of 9760e262f85ae57df39abe2799eff48a82b14474 from main
</content>
</entry>
<entry>
<title>Fixed #31496 -- Fixed QuerySet.values()/values_list() crash on combined querysets ordered by annotations.</title>
<updated>2020-11-14T09:22:09Z</updated>
<author>
<name>David-Wobrock</name>
<email>david.wobrock@gmail.com</email>
</author>
<published>2020-10-10T15:41:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=464a4c0c59277056b5d3c1132ac1b4c6085aee08'/>
<id>urn:sha1:464a4c0c59277056b5d3c1132ac1b4c6085aee08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31910 -- Fixed crash of GIS aggregations over subqueries.</title>
<updated>2020-11-04T08:54:58Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2020-11-03T21:50:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c2d4926702045e342a668057f0a758eec9db9436'/>
<id>urn:sha1:c2d4926702045e342a668057f0a758eec9db9436</id>
<content type='text'>
Regression was introduced by fff5186 but was due a long standing issue.

AggregateQuery was abusing Query.subquery: bool by stashing its
compiled inner query's SQL for later use in its compiler which made
select_format checks for Query.subquery wrongly assume the provide
query was a subquery.

This patch prevents that from happening by using a dedicated
inner_query attribute which is compiled at a later time by
SQLAggregateCompiler.

Moving the inner query's compilation to SQLAggregateCompiler.compile
had the side effect of addressing a long standing issue with
aggregation subquery pushdown which prevented converters from being
run. This is now fixed as the aggregation_regress adjustments
demonstrate.

Refs #25367.

Thanks Eran Keydar for the report.
</content>
</entry>
<entry>
<title>Fixed #32060 -- Added Random database function.</title>
<updated>2020-10-02T04:58:03Z</updated>
<author>
<name>Nick Pope</name>
<email>nick.pope@flightdataservices.com</email>
</author>
<published>2020-07-16T22:32:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=06c5d3fafc6aeb96387148726713b611aeba7fa1'/>
<id>urn:sha1:06c5d3fafc6aeb96387148726713b611aeba7fa1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31916 -- Fixed combined queryset crash when combining with ordered combined querysets.</title>
<updated>2020-09-17T06:26:06Z</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2020-09-17T06:26:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=a046bcadbee2dc0e6c889f82c08b5a21a32359ad'/>
<id>urn:sha1:a046bcadbee2dc0e6c889f82c08b5a21a32359ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31965 -- Adjusted multi-table fast-deletion on MySQL/MariaDB.</title>
<updated>2020-08-31T06:11:28Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2020-08-30T07:00:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=f6405c0b8ef7aff513b105c1da68407a881a3671'/>
<id>urn:sha1:f6405c0b8ef7aff513b105c1da68407a881a3671</id>
<content type='text'>
The optimization introduced in 7acef095d73 did not properly handle
deletion involving filters against aggregate annotations.

It initially was surfaced by a MariaDB test failure but misattributed
to an undocumented change in behavior that resulted in the systemic
generation of poorly performing database queries in 5b83bae031.

Thanks Anton Plotkin for the report.

Refs #23576.
</content>
</entry>
<entry>
<title>Fixed #31792 -- Made Exists() reuse QuerySet.exists() optimizations.</title>
<updated>2020-08-13T12:10:36Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2020-08-13T03:16:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=51297a92324976a704279b567ec4f80bb92d7b60'/>
<id>urn:sha1:51297a92324976a704279b567ec4f80bb92d7b60</id>
<content type='text'>
The latter is already optimized to limit the number of results, avoid
selecting unnecessary fields, and drop ordering if possible without
altering the semantic of the query.
</content>
</entry>
<entry>
<title>Fixed #31866 -- Fixed locking proxy models in QuerySet.select_for_update(of=()).</title>
<updated>2020-08-11T09:55:10Z</updated>
<author>
<name>Daniel Hillier</name>
<email>daniel.hillier@gmail.com</email>
</author>
<published>2020-08-08T05:17:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=60626162f76f26d32a38d18151700cb041201fb3'/>
<id>urn:sha1:60626162f76f26d32a38d18151700cb041201fb3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31657 -- Fixed ordering by attnames of self-referential ForeignKeys.</title>
<updated>2020-06-10T09:14:26Z</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2020-06-07T14:50:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=037a624120b676858be4b93c4d0adda45916fd2a'/>
<id>urn:sha1:037a624120b676858be4b93c4d0adda45916fd2a</id>
<content type='text'>
</content>
</entry>
</feed>
