| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-04-22 | Avoided unnecessary recompilation of ordering clause regex in SQLCompiler. | Adam Johnson | |
| 2020-04-06 | Fixed #31426 -- Added proper field validation to QuerySet.order_by(). | Simon Charette | |
| Resolve the field reference instead of using fragile regex based string reference validation. | |||
| 2020-04-06 | Refs #7098 -- Deprecated passing raw column aliases to order_by(). | Simon Charette | |
| Now that order_by() has expression support passing RawSQL() can achieve the same result. This was also already supported through QuerySet.extra(order_by) for years but this API is more or less deprecated at this point. | |||
| 2020-04-06 | Fixed #31420 -- Fixed crash when filtering subquery annotation against a ↵ | Hasan Ramezani | |
| SimpleLazyObject. Thanks Simon Charette for the solution and analysis. | |||
| 2020-03-31 | Refs #31403 -- Made SQLInsertCompiler.execute_sql() always return an ↵ | Adam Johnson | |
| iterable of rows. List of tuples. | |||
| 2020-03-25 | Fixed #31377 -- Disabled grouping by aliases on ↵ | Hasan Ramezani | |
| QuerySet.values()/values_list() when they collide with field names. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. Thanks Holovashchenko Vadym for the report. | |||
| 2020-03-19 | Fixed #31285 -- Fixed inherited Meta.ordering of "-pk". | Jon Dufresne | |
| 2020-02-11 | Fixed #31246 -- Fixed locking models in QuerySet.select_for_update(of=()) ↵ | Abhijeet Viswa | |
| for related fields and parent link fields with multi-table inheritance. Partly regression in 0107e3d1058f653f66032f7fd3a0bd61e96bf782. | |||
| 2020-02-06 | Fixed #31233 -- Closed database connections and cursors after use. | Jon Dufresne | |
| 2020-02-04 | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | |
| 2020-02-03 | Fixed #31217 -- Made QuerySet.values()/values_list() group by not selected ↵ | Mariusz Felisiak | |
| annotations with aggregations used in order_by(). Regression in 59b4e99dd00b9c36d56055b889f96885995e4240. Thanks Jon Dufresne for the report and Simon Charette for the review. | |||
| 2020-01-15 | Refs #31136 -- Made QuerySet.values()/values_list() group only by selected ↵ | Mariusz Felisiak | |
| annotation. Regression in 0f843fdd5b9b2f2307148465cd60f4e1b2befbb4. | |||
| 2020-01-04 | Fixed #31136 -- Disabled grouping by aliases on QuerySet.values()/values_list(). | Mariusz Felisiak | |
| Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. Thanks Sigurd Ljødal for the report. | |||
| 2019-12-23 | Fixed #31109 -- Disabled grouping by aliases on QuerySet.exists(). | Simon Charette | |
| Clearing the SELECT clause in Query.has_results was orphaning GROUP BY references to it. Thanks Thierry Bastian for the report and Baptiste Mispelon for the bisect. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. | |||
| 2019-12-19 | Fixed #31094 -- Included columns referenced by subqueries in GROUP BY on ↵ | Simon Charette | |
| aggregations. Thanks Johannes Hoppe for the report. Regression in fb3f034f1c63160c0ff13c609acd01c18be12f80. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2019-12-10 | Used Signature API instead of deprecated inspect.getcallargs(). | Baptiste Mispelon | |
| inspect.getcallargs() was deprecated in Python 3.5 and the Signature API (PEP 362) has better support for decorated functions (by default, it follows the __wrapped__ attribute set by functools.wraps for example). | |||
| 2019-12-06 | Made Query.check_filterable() use bool by default instead of str. | Alex Aktsipetrov | |
| 2019-12-06 | Fixed #31060 -- Reallowed window expressions to be used in conditions ↵ | Alex Aktsipetrov | |
| outside of queryset filters. Regression in 4edad1ddf6203326e0be4bdb105beecb0fe454c4. Thanks utapyngo for the report. | |||
| 2019-12-02 | Fixed #30953 -- Made select_for_update() lock queryset's model when using ↵ | Mariusz Felisiak | |
| "self" with multi-table inheritance. Thanks Abhijeet Viswa for the report and initial patch. | |||
| 2019-11-21 | Refs #25367 -- Made Query.build_filter() raise TypeError on non-conditional ↵ | Simon Charette | |
| expressions. | |||
| 2019-11-21 | Fixed #30484 -- Added conditional expressions support to CheckConstraint. | Simon Charette | |
| 2019-11-21 | Refs #25367 -- Moved conditional expression wrapping to the Exact lookup. | Simon Charette | |
| 2019-11-21 | Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols). | Simon Charette | |
| This prevent having to pass simple_col through multiple function calls by defining whether or not references should be resolved with aliases at the Query level. | |||
| 2019-11-18 | Replaced QueryWrapper single usage with RawSQL. | Simon Charette | |
| 2019-11-13 | Fixed #30971 -- Prevented Query.resolve_lookup_value() from coercing list ↵ | George Marshall | |
| values to tuples. Regression in 8a281aa7fe76a9da2284f943964a9413697cff1f. | |||
| 2019-10-29 | Fixed #30899 -- Lazily compiled import time regular expressions. | Hasan Ramezani | |
| 2019-10-24 | Fixed #23576 -- Implemented multi-alias fast-path deletion in MySQL backend. | Simon Charette | |
| This required moving the entirety of DELETE SQL generation to the compiler where it should have been in the first place and implementing a specialized compiler on MySQL/MariaDB. The MySQL compiler relies on the "DELETE table FROM table JOIN" syntax for queries spanning over multiple tables. | |||
| 2019-10-11 | Fixed #30854 -- Fixed QuerySet.select_related() with multiple FilteredRelations. | Hasan Ramezani | |
| 2019-10-11 | Refs #30854 -- Moved local_setter() outside the loop in ↵ | Hasan Ramezani | |
| SQLCompiler.get_related_selections(). | |||
| 2019-09-24 | Removed some outdated backwards compatibility imports and misleading comments. | Mads Jensen | |
| EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef. | |||
| 2019-09-24 | Refs #29444 -- Removed redundant ↵ | Mariusz Felisiak | |
| DatabaseFeatures.can_return_multiple_columns_from_insert. Unnecessary since b31e63879eb5d9717e9f890401f7222e4f00c910. | |||
| 2019-09-24 | Fixed #29444 -- Allowed returning multiple fields from INSERT statements on ↵ | Johannes Hoppe | |
| Oracle. | |||
| 2019-09-24 | Fixed #30796 -- Prevented select_related() from mutating a queryset on chaining. | Simon Charette | |
| Thanks Darren Maki for the report. | |||
| 2019-09-10 | Refs #14357 -- Made Meta.ordering not affect GROUP BY queries. | Mariusz Felisiak | |
| Per deprecation timeline. | |||
| 2019-09-09 | Fixed #28107 -- Added ↵ | Vojtech Bocek | |
| DatabaseFeatures.allows_group_by_selected_pks_on_model() to allow enabling optimization for unmanaged models. | |||
| 2019-09-09 | Refs #29444 -- Allowed returning multiple fields from INSERT statements on ↵ | Johannes Hoppe | |
| PostgreSQL. Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and Mariusz Felisiak for reviews. | |||
| 2019-09-02 | Fixed #30739 -- Fixed exclusion of multi-valued lookup against outer rhs. | Simon Charette | |
| OuterRef right hand sides have to be nested, just like F rhs have to, during the subquery pushdown split_exclude performs to ensure they are resolved against the outer query aliases. | |||
| 2019-08-29 | Fixed #25367 -- Allowed boolean expressions in QuerySet.filter() and exclude(). | Matthew Schinckel | |
| This allows using expressions that have an output_field that is a BooleanField to be used directly in a queryset filters, or in the When() clauses of a Case() expression. Thanks Josh Smeaton, Tim Graham, Simon Charette, Mariusz Felisiak, and Adam Johnson for reviews. Co-Authored-By: NyanKiyoshi <hello@vanille.bid> | |||
| 2019-08-17 | Fixed #29545 -- Fixed using filter lookups againts nested subquery expressions. | Simon Charette | |
| Made sql.Where resolve lhs of its child nodes. This is necessary to allow filter lookups against nested subquery expressions to properly resolve their OuterRefs to Cols. Thanks Oskar Persson for the simplified test case. | |||
| 2019-08-16 | Fixed #30687 -- Fixed using of OuterRef() expressions in distance lookups. | Andrew Brown | |
| 2019-08-13 | Refs #25367 -- Moved select_format hook to BaseExpression. | Simon Charette | |
| This will expose an intermediary hook for expressions that need special formatting when used in a SELECT clause. | |||
| 2019-08-02 | Fixed #30668 -- Made QuerySet.filter() raise NotSupportedError if any of ↵ | aaktsipetrov | |
| source expressions is not filterable. | |||
| 2019-07-25 | Added Query.is_sliced property. | Mariusz Felisiak | |
| Previously, we used Query.can_filter() mainly to check if a query is sliced what was confusing. | |||
| 2019-07-11 | Refs #30557 -- Fixed crash of ordering by ptr fields when Meta.ordering ↵ | Mariusz Felisiak | |
| contains F() expressions. Thanks Can Sarıgöl for the report. Follow up to 8c5f9906c56ac72fc4f13218dd90bdf9bc8a248b. | |||
| 2019-07-11 | Fixed #30557 -- Fixed crash of ordering by ptr fields when Meta.ordering ↵ | Hasan Ramezani | |
| contains expressions. | |||
| 2019-07-08 | Refs #29444 -- Added support for fetching a returned non-integer insert ↵ | Johannes Hoppe | |
| values on Oracle. This is currently not actively used, since the ORM will ask the SQL compiler to only return auto fields. | |||
| 2019-06-28 | Fixed #28408 -- Added error message when updating with annotated expressions ↵ | can | |
| on joined fields. Co-Authored-By: Simon Charette <charette.s@gmail.com> | |||
| 2019-06-19 | Fixed #29834 -- Fixed column mismatch crash with ↵ | can | |
| QuerySet.values()/values_list() and order_by() on combined querysets. | |||
| 2019-06-19 | Fixed #30572 -- Prevented values()/values_list() on combined queryset from ↵ | Mariusz Felisiak | |
| mutating the list of columns in querysets. | |||
| 2019-05-31 | Fixed #26192 -- Fixed crash of ordering by constants on PostgreSQL. | Mariusz Felisiak | |
| Thanks Simon Charette for the review. | |||
