summaryrefslogtreecommitdiff
path: root/django/db/models/sql
AgeCommit message (Collapse)Author
2018-07-18[2.1.x] Removed duplicate words in various comments.Mariusz Felisiak
Backport of a73cf8110e6cccbf46bf77fd4ddce2df99df53ca from master
2018-05-27[2.1.x] Fixed #29416 -- Removed unnecesary subquery from GROUP BY clause on ↵Mariusz Felisiak
MySQL when using a RawSQL annotation. Regression in 1d070d027c218285b66c0bde8079034b33a87f11. Backport of 4ab1f559e8d1264bcb20bb497988973194f5d8f2 from master
2018-04-19Fixed #28574 -- Added QuerySet.explain().Tom
2018-04-13Fixed #29286 -- Fixed column mismatch crash with QuerySet.values() or ↵Mariusz Felisiak
values_list() after combining an annotated and unannotated queryset with union(), difference(), or intersection(). Regression in a0c03c62a8ac586e5be5b21393c925afa581efaf. Thanks Tim Graham and Carlton Gibson for reviews.
2018-04-04Fixed #25718 -- Made a JSONField lookup value of None match keys that have a ↵Dmitry Dygalo
null value.
2018-03-19Fixed #29229 -- Fixed column mismatch crash when combining two annotated ↵Astral
values_list() querysets with union(), difference(), or intersection(). Regression in 7316720603821ebb64dfe8fa592ba6edcef5f3e.
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-02-08Fixed #29108 -- Fixed crash in aggregation of distinct+ordered+sliced querysets.Simon Charette
Regression in 4acae21846f6212aa992763e587c7e201828d7b0. Thanks Stephen Brooks for the report.
2018-02-05Refs #28814 -- Imported from collections.abc to fix Python 3.7 deprecation ↵Raymond Hettinger
warnings. https://bugs.python.org/issue25988
2018-01-12Removed Query.split_exclude()'s unused prefix argument.Mariusz Felisiak
Unused since b4492a8ca4a7ae4daa3a6b03c3d7a845fad74931.
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2018-01-03Fixed #28811 -- Fixed crash when combining regular and group by annotations.Robin Ramael
2017-12-26Fixed #28944 -- Fixed crash when chaining values()/values_list() after ↵Ran Benita
QuerySet.select_for_update(of=()).
2017-12-12Refs #27985 -- Reallowed using __exact=None as an alias for __isnull=True if ↵Sergey Fedoseev
a custom lookup class with lookup_name != None is registered as the exact lookup. Regression in 58da81a5a372a69f0bac801c412b57f3cce5f188 and prerequisite for refs #28896.
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-08Refs #27849 -- Removed empty Q() hack in filtered Aggregate.as_sql().Simon Charette
This required allowing WhereNode to be provided as When(condition). This was made possible by cf12257db23fa248c89a3da3f718aa01a50ca659.
2017-12-07Fixed #28906 -- Removed unnecessary bool() calls.Tim Graham
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-12-04Fixed #28860 -- Removed unnecessary len() calls.Дилян Палаузов
2017-12-01Fixed #28863 -- Fixed filter on annotation that contains Q.Sergey Fedoseev
2017-11-21Fixed #28820 -- Eliminated an extra query with QuerySet.update() on proxy ↵Yan Mitrofanov
models.
2017-11-21Fixed #28817 -- Made QuerySet.iterator() use server-side cursors after ↵Dražen Odobašić
values() and values_list().
2017-11-18Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields.Krzysztof Nazarewski
Thanks Krzysztof Nazarewski for the initial patch.
2017-11-14Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().Дилян Палаузов
2017-11-12Fixed #28781 -- Added QuerySet.values()/values_list() support for union(), ↵Mariusz Felisiak
difference(), and intersection(). Thanks Tim Graham for the review.
2017-11-07Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов
2017-10-28Refs #28010 -- Allowed reverse related fields in SELECT FOR UPDATE .. OF.Ran Benita
Thanks Adam Chidlow for polishing the patch.
2017-10-16Fixed #28497 -- Restored the ability to use sliced QuerySets with __exact.Tim Graham
Regression in ec50937bcbe160e658ef881021402e156beb0eaf. Thanks Simon Charette for review.
2017-10-09Fixed #28670 -- Added FETCH/OFFSET support on Oracle.Mariusz Felisiak
Thanks Tim Graham for the review.
2017-10-06Refs #24254 -- Removed unnecessary SQL AS clause in SQLCompiler.as_sql().Mariusz Felisiak
Incorrect on Oracle.
2017-10-04Refs #28670 -- Moved LIMIT/OFFSET SQL to DatabaseOperations.limit_offset_sql().Mariusz Felisiak
Thanks Tim Graham for the review.
2017-10-03Fixed #28675 -- Removed always True variable in ↵Tim Graham
SQLInsertCompiler.execute_sql() check. Unused since 7deb25b8dd5aa1ed02b5e30cbc67cd1fb0c3d6e6.
2017-10-02Fixed #28652 -- Fixed a few comments in django/db/models/*.Дилян Палаузов
2017-09-22Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵Nicolas Delaby
support. Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-20Removed unused list in Query.resolve_lookup_value().Nicolas Delaby
Unneeded since its introduction in 4f138fe5a496a81115c4fba6615a517fc62c3b17.
2017-09-18Fixed #26608 -- Added support for window expressions (OVER clause).Mads Jensen
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.
2017-09-15Removed unnecessary check in SQLCompiler.get_related_selections().Tim Graham
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-07Removed unneeded __init__() methods.Sergey Fedoseev
2017-09-03Updated EmpytResultSet import not to use the alias.Mariusz Felisiak
2017-09-02Moved select_sql in SQLCompiler.get_extra_select() to improve performance.Mariusz Felisiak
2017-08-31Fixed #28549 -- Fixed QuerySet.defer() with super and subclass fields.Jeremy Kerr
Previously, deferring fields in different classes didn't omit the superclass' deferred field. Thanks Simon Charette for the suggested fix.
2017-08-23Refs #28459 -- Improved performance of SQLCompiler.apply_converters().Sergey Fedoseev
2017-08-15Simplified generation of result in Query.get_aggregation().Sergey Fedoseev
2017-08-15Avoided creation of temporary set in Query.append_annotation_mask().Sergey Fedoseev
2017-08-11Simplified calculation of used joins in Query.build_filter().Sergey Fedoseev
2017-08-11Removed outdated comment in Query.build_filter().Sergey Fedoseev
2017-08-08Refs #28459 -- Improved performance of sql.compiler.cursor_iter().Sergey Fedoseev
2017-08-07Refs #28459 -- Improved performance of SQLCompiler.results_iter().Sergey Fedoseev