| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-05-04 | Refs #33646 -- Reduced sync_to_async hops on async QuerySet iteration. | Simon Charette | |
| Until we add support for truly asynchronous database backends it's actually detrimental to have complete set retrieval require multiple hops between sync and async emulated contexts via asgiref. By defaulting to sending the whole sync _fetch_all() to the current context thread pool we reduce unncessary work when dealing with large result sets since the queryset cannot be iterated anyway before all results are retrieved and cached. | |||
| 2022-05-04 | Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4. | Mariusz Felisiak | |
| 2022-05-03 | Refs #30581 -- Added Q.flatten(). | Gagaro | |
| 2022-05-03 | Fixed #29854 -- Made _all_related_fields() return deterministically ordered ↵ | Collin Anderson | |
| fields. Thanks to Rick Yang and Baptiste Mispelon for the investigation. | |||
| 2022-05-02 | Refs #33646 -- Made QuerySet.raw() async-compatible. | Mariusz Felisiak | |
| 2022-05-02 | Refs #33646 -- Added RawModelIterable. | Mariusz Felisiak | |
| 2022-05-02 | Fixed #33413 -- Made migrations propage collations to related fields. | David Wobrock | |
| 2022-04-29 | Refs #33671 -- Fixed migrations crash when adding collation to a primary key ↵ | Mariusz Felisiak | |
| on Oracle. | |||
| 2022-04-29 | Fixed #33670 -- Fixed altering primary key on SQLite. | Mariusz Felisiak | |
| 2022-04-29 | Refs #33413 -- Added collation to CharField/TextField's db_parameters. | David Wobrock | |
| 2022-04-26 | Fixed #33646 -- Added async-compatible interface to QuerySet. | Andrew Godwin | |
| Thanks Simon Charette for reviews. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2022-04-26 | Fixed #33655 -- Removed unnecessary constant from GROUP BY clause for ↵ | marcperrinoptel | |
| QuerySet.exists(). | |||
| 2022-04-22 | Removed unnecessary variable in Index.create_sql(). | Hannes Ljungberg | |
| Unnecessary since fdfb3086fcba1b737ec09676ab4bb95105f3371e. | |||
| 2022-04-22 | Refs #31223 -- Added __class_getitem__() to ForeignKey. | Collin Anderson | |
| 2022-04-21 | Fixed #33509 -- Added "(no-op)" to sqlmigrate output for operations without ↵ | Adam Johnson | |
| SQL statement. | |||
| 2022-04-21 | Fixed #33004 -- Made saving objects with unsaved GenericForeignKey raise ↵ | sarahboyce | |
| ValueError. This aligns to the behaviour of OneToOneField and ForeignKey fields. Thanks Jonny Park for the initial patch. | |||
| 2022-04-19 | Refs #32226 -- Fixed JSON format of QuerySet.explain() on PostgreSQL when ↵ | Mariusz Felisiak | |
| format is uppercased. Follow up to aba9c2de669dcc0278c7ffde7981be91801be00b. | |||
| 2022-04-18 | Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related ↵ | Mariusz Felisiak | |
| tests with MyISAM storage engine. | |||
| 2022-04-14 | Made select_for_update() don't raise TransactionManagementError on databases ↵ | Mariusz Felisiak | |
| that don't support transactions. | |||
| 2022-04-14 | Expanded QuerySet.explain() error message if a backend supports no formats. | Tim Graham | |
| 2022-04-14 | Removed unneeded code in explain_query_prefix() | Tim Graham | |
| 2022-04-13 | Fixed #30511 -- Used identity columns instead of serials on PostgreSQL. | Florian Apolloner | |
| 2022-04-13 | Fixed DatabaseFeatures.supports_index_column_ordering and related tests with ↵ | Mariusz Felisiak | |
| MyISAM storage engine. | |||
| 2022-04-13 | Removed unnecessary tuple call in SQLInsertCompiler. | David Smith | |
| 2022-04-12 | Fixed DatabaseFeatures.supports_expression_indexes on MySQL with MyISAM. | Mariusz Felisiak | |
| 2022-04-12 | Fixed #24296 -- Made QuerySet.exists() clear selected columns for not sliced ↵ | mgaligniana | |
| distinct querysets. | |||
| 2022-04-12 | Fixed #33626 -- Cleared cache when unregistering a lookup. | Himanshu-Balasamanta | |
| 2022-04-11 | Removed DatabaseFeatures.validates_explain_options. | Mariusz Felisiak | |
| Always True since 6723a26e59b0b5429a0c5873941e01a2e1bdbb81. | |||
| 2022-04-11 | Fixed CVE-2022-28347 -- Protected QuerySet.explain(**options) against SQL ↵ | Mariusz Felisiak | |
| injection on PostgreSQL. | |||
| 2022-04-11 | Fixed CVE-2022-28346 -- Protected QuerySet.annotate(), aggregate(), and ↵ | Mariusz Felisiak | |
| extra() against SQL injection in column aliases. Thanks Splunk team: Preston Elder, Jacob Davis, Jacob Moore, Matt Hanson, David Briggs, and a security researcher: Danylo Dmytriiev (DDV_UA) for the report. | |||
| 2022-04-07 | Fixed #33618 -- Fixed MTI updates outside of primary key chain. | Simon Charette | |
| 2022-04-06 | Fixed #33471 -- Made AlterField operation a noop when changing "choices". | sarahboyce | |
| This also allows customizing attributes of fields that don't affect a column definition. | |||
| 2022-04-04 | Fixed #33605 -- Fixed migration crash when altering RegexValidator to ↵ | Brian Helba | |
| pre-compiled regular expression. | |||
| 2022-03-31 | Fixed #33397 -- Corrected resolving output_field for ↵ | Luke Plant | |
| DateField/DateTimeField/TimeField/DurationFields. This includes refactoring of CombinedExpression._resolve_output_field() so it no longer uses the behavior inherited from Expression of guessing same output type if argument types match, and instead we explicitly define the output type of all supported operations. This also makes nonsensical operations involving dates (e.g. date + date) raise a FieldError, and adds support for automatically inferring output_field for cases such as: * date - date * date + duration * date - duration * time + duration * time - time | |||
| 2022-03-31 | Refs #33397 -- Added register_combinable_fields(). | Luke Plant | |
| 2022-03-31 | Removed unnecessary Query.get_loaded_field_names_cb() and ↵ | Mariusz Felisiak | |
| Query.deferred_to_data()'s callback argument. | |||
| 2022-03-31 | Refs #24020 -- Removed redundant Query.get_loaded_field_names(). | Mariusz Felisiak | |
| get_loaded_field_names() is no longer called in multiple places (see 0c7633178fa9410f102e4708cef979b873bccb76) and it's redundant with SQLCompiler.deferred_to_columns(). | |||
| 2022-03-31 | Updated select_related_descend() comment. | Mariusz Felisiak | |
| Outdated since 0c7633178fa9410f102e4708cef979b873bccb76. | |||
| 2022-03-30 | Fixed #33598 -- Reverted "Removed unnecessary reuse_with_filtered_relation ↵ | Mariusz Felisiak | |
| argument from Query methods." Thanks lind-marcus for the report. This reverts commit 0c71e0f9cfa714a22297ad31dd5613ee548db379. Regression in 0c71e0f9cfa714a22297ad31dd5613ee548db379. | |||
| 2022-03-29 | Updated Oracle docs links to Oracle 21c. | Mariusz Felisiak | |
| 2022-03-24 | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | |
| Remaining test case ensures that uses of the alias are mapped canonically by the migration writer. | |||
| 2022-03-23 | Refs #32365 -- Made migration writer use datetime.timezone.utc. | Carlton Gibson | |
| 2022-03-22 | Refs #30581 -- Fixed DatabaseFeatures.bare_select_suffix on MySQL < 8 and ↵ | Gagaro | |
| MariaDB < 10.4. | |||
| 2022-03-17 | Prevented initialization of unused database connections. | Florian Apolloner | |
| 2022-03-17 | Moved ensure_defaults() and prepare_test_settings() logic to ↵ | Florian Apolloner | |
| ConnectionHandler.configure_settings(). | |||
| 2022-03-17 | Removed usage of django.db.utils.ConnectionHandler.databases. | Florian Apolloner | |
| 2022-03-16 | Made BaseConstraint importable from django.db.models. | Gagaro | |
| 2022-03-16 | Used sets for field names for exclusion. | Gagaro | |
| They are used only for containment checks. | |||
| 2022-03-16 | Refs #30581 -- Allowed sql.Query to be used without model. | Gagaro | |
| 2022-03-15 | Fixed #31169 -- Adapted the parallel test runner to use spawn. | David Smith | |
| Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
