<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/db/models/sql/query.py, branch 1.6.6</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=1.6.6</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=1.6.6'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2014-05-05T10:27:54Z</updated>
<entry>
<title>[1.6.x] Fixed #22429 -- Incorrect SQL when using ~Q and F</title>
<updated>2014-05-05T10:27:54Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2014-04-28T12:27:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=0e3704963693ddfaaa525054c42333f6ffdb4b47'/>
<id>urn:sha1:0e3704963693ddfaaa525054c42333f6ffdb4b47</id>
<content type='text'>
Backpatch of 5e1f4656b98816c96a1cc051224c1b699db480e0 from master.

Conflicts:
	django/db/models/sql/query.py
	tests/queries/models.py
	tests/queries/tests.py
</content>
</entry>
<entry>
<title>[1.6.x] Fixed #21748 -- join promotion for negated AND conditions</title>
<updated>2014-02-04T17:06:37Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2014-01-08T17:35:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=fd3fa851b592700a8b04af46f626454db0db02e4'/>
<id>urn:sha1:fd3fa851b592700a8b04af46f626454db0db02e4</id>
<content type='text'>
Made sure Django treats case .filter(NOT (a AND b)) the same way as
.filter((NOT a OR NOT b)) for join promotion.

Heavily modified backpatch of 35cecb1ebd0ccda0be7a518d1b7273333d26fbae
from master.

Conflicts:

	django/db/models/sql/query.py
	tests/queries/tests.py
</content>
</entry>
<entry>
<title>[1.6.x] Fixed #21787 -- regression in MTI .exclude() queries</title>
<updated>2014-01-24T08:18:57Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2014-01-20T16:28:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=e47b90e48f3532d312afcfaec55b2711b2129c02'/>
<id>urn:sha1:e47b90e48f3532d312afcfaec55b2711b2129c02</id>
<content type='text'>
Backpatch of 78a2617703bc1dada409f126db5c3db214913ff4 from master.
</content>
</entry>
<entry>
<title>[1.6.x] Fixed #21150 -- Improved Query.add_fields() join promotion logic</title>
<updated>2013-09-24T16:04:42Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2013-09-24T15:42:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1a922870ea07e730281c0e2a7b3a170232a81236'/>
<id>urn:sha1:1a922870ea07e730281c0e2a7b3a170232a81236</id>
<content type='text'>
Thanks to Eivind Fonn for the report and test case.
</content>
</entry>
<entry>
<title>[1.6.x] Removed stale add_q() comment</title>
<updated>2013-08-30T06:46:16Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2013-08-30T06:44:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=cd10e998b6a8f9daaf2e25cad55f33f3df51ea88'/>
<id>urn:sha1:cd10e998b6a8f9daaf2e25cad55f33f3df51ea88</id>
<content type='text'>
Backport of 13be3bfef1 from master
</content>
</entry>
<entry>
<title>Fixed #14930 -- values_list() failure on qs ordered by extra column</title>
<updated>2013-06-18T20:56:51Z</updated>
<author>
<name>Florian Hahn</name>
<email>flo@fhahn.com</email>
</author>
<published>2013-02-05T23:11:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=2f35c6f10fcbae541691207fb0c0560a13b754fc'/>
<id>urn:sha1:2f35c6f10fcbae541691207fb0c0560a13b754fc</id>
<content type='text'>
Thanks lsaffre for the report and simon29, vicould, and Florian Hahn
for the patch.

Some changes done by committer.
</content>
</entry>
<entry>
<title>Fixed #20583 -- ORM always uses setup_joins() for join generation</title>
<updated>2013-06-16T12:44:52Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2013-06-15T17:31:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=aa22cbd51aa6cb35fc658dd704948a18b27d1981'/>
<id>urn:sha1:aa22cbd51aa6cb35fc658dd704948a18b27d1981</id>
<content type='text'>
There were a couple of places which used Query.join() directly. By
using setup_joins() in these places the code is more DRY, and in
addition there is no need to directly call field.get_joining_columns()
unless the field is the given join_field from get_path_info(). This
makes it easier to make sure a ForeignObject subclass generates joins
correctly in all cases.
</content>
</entry>
<entry>
<title>Fixed #20528 -- regression in select_related join promotion</title>
<updated>2013-06-14T13:29:06Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2013-06-10T15:22:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=89bf7a45250cf554295f3d17d708311d3edba101'/>
<id>urn:sha1:89bf7a45250cf554295f3d17d708311d3edba101</id>
<content type='text'>
The join used by select_related was incorrectly INNER when the query
had an ORed filter for nullable join that was trimmed away. Fixed this
by forcing the join type to LOUTER even when a join was trimmed away
in ORed queries.
</content>
</entry>
<entry>
<title>Fixed #20564 -- Generic relations exclude() regression</title>
<updated>2013-06-05T22:54:46Z</updated>
<author>
<name>Anssi Kääriäinen</name>
<email>akaariai@gmail.com</email>
</author>
<published>2013-06-05T21:29:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=31fd64ad8a98d7de0acb9144ae6f7bd124700cb0'/>
<id>urn:sha1:31fd64ad8a98d7de0acb9144ae6f7bd124700cb0</id>
<content type='text'>
The patch for #19385 caused a regression in certain generic relations
.exclude() filters if a subquery was needed. The fix contains a
refactoring to how Query.split_exclude() and Query.trim_start()
interact.

Thanks to Trac alias nferrari for the report.
</content>
</entry>
<entry>
<title>Replaced an antiquated pattern.</title>
<updated>2013-05-17T16:08:58Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2013-05-17T14:33:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c487b5974ee7e7f196079611d7352364e8873ed'/>
<id>urn:sha1:9c487b5974ee7e7f196079611d7352364e8873ed</id>
<content type='text'>
Thanks Lennart Regebro for pointing it out.
</content>
</entry>
</feed>
