django1/django/db/models/sql
Anssi Kääriäinen 8c72aa2379 Fixed qs.order_by() join promotion for already existing joins
When order_by causes new joins to be added to the query, the joins must
be LEFT OUTER joins for nullable relations, otherwise the order_by
could cause the results to be altered. This commit fixes the logic to
only promote new joins, previously all joins in the order_by lookup
path were promoted.

Thanks to Bruno Desthuilliers for spotting this corner case.
2012-05-24 18:42:06 +03:00
..
__init__.py Remove all relative imports. We have always been at war with relative imports. 2011-10-18 00:47:49 +00:00
aggregates.py Fixed #17728 -- When filtering an annotation, ensured the values used in the filter are properly converted to their database representation. This bug was particularly visible with timezone-aware DateTimeFields. Thanks gg for the report and Carl for the review. 2012-02-22 19:40:27 +00:00
compiler.py Fixed qs.order_by() join promotion for already existing joins 2012-05-24 18:42:06 +03:00
constants.py Switch a datastructure internal to the ORM to be a set, instead of a dictionary. 2012-04-29 22:18:30 -04:00
datastructures.py Fixed #1142 -- Added multiple database support. 2009-12-22 15:18:51 +00:00
expressions.py Fixed #10154: Allow combining F expressions with timedelta values. 2010-12-22 03:34:04 +00:00
query.py Replaced foo.next() by next(foo). 2012-05-10 20:15:49 +02:00
subqueries.py Fixed #10498 (again) -- Made sure the improvements done in r17641 have a smaller impact on speed. Thanks to Anssi Kääriäinen for the patch and Jonas Obrist for reviewing. 2012-03-13 03:48:20 +00:00
where.py Replaced 'next' testing by collections.Iterator testing. 2012-05-22 20:37:38 +02:00