Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/models/sql
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25609 -- Fixed regression in related field nested ↵Ian Foote2015-10-271-1/+4
| | | | lookup error.
* Fixed #24687 -- Added select_related() validation for ↵Tim Graham2015-10-101-1/+1
| | | | | | | | | | nested non-relational fields. The removed test was added in the original select_related() validation patch (45d4e43d2d25b902e3821b612209afa951a8bcb8), but there doesn't seem to be any reason for it. Thanks Claude Paroz for help and review.
* Refs #14030 -- Removed backwards compatiblity for ↵Tim Graham2015-09-242-189/+0
| | | | | | old-style aggregates. Per deprecation timeline.
* Removed SQLCompiler.__call__() per deprecation timeline.Tim Graham2015-09-241-13/+0
|
* Fixed #24509 -- Added Expression support to ↵Alex Hill2015-09-222-36/+115
| | | | SQLInsertCompiler
* Fixed #24629 -- Unified Transform and Expression APIsJosh Smeaton2015-09-212-4/+4
|
* Removed the unused JoinPromoter.outer_votes attribute.Simon Charette2015-09-171-8/+6
|
* Fixed #24525 -- Fixed AssertionError in some complex ↵Tim Graham2015-09-051-1/+2
| | | | | | queries. Thanks Anssi Kääriäinen for providing the solution.
* Fixed #19263 -- Fixed crash when filtering using __in ↵Tim Graham2015-09-041-1/+4
| | | | | | and an empty QuerySet. Thanks Marcin Biernat for the initial patch and tests.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-312-2/+0
|
* Fixed #24951 -- Fixed AssertionError in delete queries ↵Tim Graham2015-08-201-1/+1
| | | | | | involving a foreign/primary key. Thanks Anssi Kääriäinen for help.
* Fixed #24986 -- Added support for annotations in ↵Valentina Mukhamedzhanova2015-08-152-3/+15
| | | | DISTINCT queries.
* Fixed #25064 -- Allowed empty join columns.Alex Hill2015-08-151-10/+20
|
* Made Options.get_base_chain() always return a list.Valentina Mukhamedzhanova2015-08-141-1/+1
|
* Adjusted SQLCompiler.get_order_by()'s docstring return ↵risicle2015-07-281-1/+1
| | | | value.
* Fixed #25095 -- Fixed annotate() + values() group by bugMitchell Kotler2015-07-271-2/+2
| | | | Thanks Josh Smeaton for help on the tests.
* Fixed #24923 -- errored out nicely when using aggregates ↵Anssi Kääriäinen2015-07-131-0/+5
| | | | in order_by()
* Fixed #23791 -- Corrected object type check for pk__in=qsAnssi Kääriäinen2015-06-291-8/+8
| | | | | | | | | | | | When the pk was a relation field, qs.filter(pk__in=qs) didn't work. In addition, fixed Restaurant.objects.filter(place=restaurant_instance), where place is an OneToOneField and the primary key of Restaurant. A big thank you to Josh for review and to Tim for review and cosmetic edits. Thanks to Beauhurst for commissioning the work on this ticket.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-2/+1
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-243-10/+10
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Refs #24833 -- Forwardported some of "Fixed Case ↵Andriy Sokolovskiy2015-06-051-6/+6
| | | | | | | expressions with exclude()." Partial forwardport of 469f1e362bb9670b174b37da9edd4631aff7badb from stable/1.8.x as the issue was already fixed in master.
* Fixed #24835 -- Fixed QuerySet.exists() after an ↵Paweł Marczewski2015-05-261-0/+3
| | | | | | | | annotation with Count() QuerySet.exists() incorrectly handled query.group_by = True case (grouping by all select fields), causing GROUP BY expressions to be wiped along with select fields.
* Fixed #16891 -- Made Model/QuerySet.delete() return the ↵Alexander Sosnovskiy2015-05-221-6/+12
| | | | number of deleted objects.
* Fixed #24705 -- Fixed negated Q objects in expressions.Anssi Kääriäinen2015-05-201-5/+7
| | | | Avoided split_exclude() for Q when used as an expression.
* Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin2015-05-171-1/+1
| | | | | This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
* Removed global timezone-aware datetime adapters.Aymeric Augustin2015-05-171-4/+20
| | | | | | | | | | Refs #23820. Fixed #19738. Refs #17755. In order not to introduce a regression for raw queries, parameters are passed through the connection.ops.value_to_db_* methods, depending on their type.
* Fixed #24748 -- Fixed incorrect GROUP BY on MySQL in ↵Anssi Kääriäinen2015-05-111-2/+5
| | | | | | | | | some queries When the query's model had a self-referential foreign key, the compiler.get_group_by() code incorrectly used the self-referential foreign key's column (for example parent_id) as GROUP BY clause when it should have used the model's primary key column (id).
* Fixed #24719 -- Restored the ability to use interators ↵Aric Coady2015-04-281-1/+4
| | | | as queryset related object filters.
* Fixed #24654 -- Based ordering circular references ↵Simon Charette2015-04-201-1/+1
| | | | | | detection on columns. Thanks to Elmar Bucher for the report and Tim for the review.
* Fixed #24605 -- Fixed incorrect reference to alias in ↵Anssi Kääriäinen2015-04-161-1/+2
| | | | | | | subquery. Thanks to charettes and priidukull for investigating the issue, and to kurevin for the report.
* Fixed #24615 -- ordering by expression not part of SELECTAnssi Kääriäinen2015-04-161-0/+7
| | | | | | | | Fixed queries where an expression was used in order_by() but the expression wasn't in the query's select clause (for example the expression could be masked by .values() call) Thanks to Trac alias MattBlack85 for the report.
* Fixed #24277 -- Added exception when dict used in ↵Alex Wilson2015-04-141-0/+2
| | | | QuerySet filtering
* Fixed #24611 -- Fixed update() crash with related UUID ↵Jay Wineinger2015-04-131-1/+4
| | | | pk object.
* Fixed #19259 -- Added group by selected primary keys ↵Simon Charette2015-03-301-4/+12
| | | | support.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-252-6/+6
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Removed field.field check in setup_joins()Anssi Kääriäinen2015-03-252-12/+4
|
* Refs #24267 -- Implemented lookups for related fieldsAnssi Kääriäinen2015-03-251-26/+21
| | | | | | | | | | Previously related fields didn't implement get_lookup, instead related fields were treated specially. This commit removed some of the special handling. In particular, related fields return Lookup instances now, too. Other notable changes in this commit is removal of support for annotations in names_to_path().
* Fixed #24171 -- Fixed failure with complex aggregate ↵Anssi Kääriäinen2015-03-091-4/+23
| | | | | | | | | | | query and expressions The query used a construct of qs.annotate().values().aggregate() where the first annotate used an F-object reference and the values() and aggregate() calls referenced that F-object. Also made sure the inner query's select clause is as simple as possible, and made sure .values().distinct().aggreate() works correctly.
* Update converters to take a consistent set of parameters.Marc Tamlyn2015-02-201-6/+4
| | | | | | As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
* Fixed #24343 -- Ensure db converters are used for ↵Marc Tamlyn2015-02-201-1/+1
| | | | | | foreign keys. Joint effort between myself, Josh, Anssi and Shai.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-065-21/+20
|
* Removed non-used EmptyShortCircuitAnssi Kääriäinen2015-02-041-8/+0
|
* Removed EverythingNodeAnssi Kääriäinen2015-02-042-62/+26
| | | | | At the same time, made sure that empty nodes in where clause match everything.
* Fixed #24268 -- removed Query.havingAnssi Kääriäinen2015-02-044-90/+65
| | | | | | | Instead of splitting filter clauses to where and having parts before adding them to query.where or query.having, add all filter clauses to query.where, and when compiling the query split the where to having and where parts.
* Removed query.alias_diff()Tim Graham2015-02-021-11/+0
| | | | This function is unused since 6fe2b001dba45134d7c10729c57959995e241a88
* Removed Query.raise_field_error()Tim Graham2015-02-021-5/+0
| | | | | This method was inadvertently reintroduced in f59fd15c4928caf3dfcbd50f6ab47be409a43b01
* Fixed #14483 -- Allowed using subqueries with GIS lookupsClaude Paroz2015-01-301-1/+1
|
* Fixed #24211 -- Removed ValuesQuerySet() and ↵Loic Bistuer2015-01-302-5/+10
| | | | | | ValuesListQuerySet(). Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
* Fixed #24164 -- Fixed Oracle GIS limited aggregation ↵Tim Graham2015-01-302-6/+11
| | | | test failure.
* Fixed #24154 -- Backends can now check support for ↵Josh Smeaton2015-01-272-16/+0
| | | | expressions