summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2022-10-01[4.1.x] Refs #34058 -- Fixed changing/deleting sequences when altering ↵Mariusz Felisiak
pre-Django 4.1 auto fields on PostgreSQL. Thanks Anders Kaseorg for the report. Follow up to 19e6efa50b603af325e7f62058364f278596758f. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. Backport of bc3b8f152452ba0e41f28baa93c0bf8f39cddb09 from main
2022-09-30[4.1.x] Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related ↵Mariusz Felisiak
managers." This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report. Backport of 5e0aa362d91d000984995ce374c2d7547d8d107f from main
2022-09-29[4.1.x] Fixed #34058 -- Changed sequence types when altering pre-Django 4.1 ↵Mariusz Felisiak
auto fields on PostgreSQL. Thanks Anders Kaseorg for the report. Thanks Florian Apolloner for pair programming. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. Backport of 19e6efa50b603af325e7f62058364f278596758f from main
2022-09-13[4.1.x] Fixed #33996 -- Fixed CheckConstraint validation on NULL values.David Sanders
Bug in 667105877e6723c6985399803a364848891513cc. Thanks James Beith for the report. Backport of e14d08cd894e9d91cb5d9f44ba7532c1a223f458 from main
2022-09-08[4.1.x] Fixed #33992 -- Fixed queryset crash when aggregating over a group ↵Simon Charette
containing Exists. A more in-depth solution is likely to make sure that we always GROUP BY selected annotations or revisit how we use Query.exists() in the Exists expression but that requires extra work that isn't suitable for a backport. Regression in e5a92d400acb4ca6a8e1375d1ab8121f2c7220be. Thanks Fernando Flores Villaça for the report. Backport of 32536b1324e98768dd892980408a8c6b26c23fd9 from main
2022-09-07[4.1.x] Fixed #33982 -- Fixed migrations crash when adding model with ↵James Beith
ExclusionConstraint. Regression in 0e656c02fe945389246f0c08f51c6db4a0849bd2. Backport of 19e838daa8872ee29fbea0bc471c2a6443f26835 from main
2022-08-29[4.1.x] Fixed #33960 -- Fixed migrations crash on SQLite < 3.26.Mariusz Felisiak
Regression in 0b95a96ee10d3e12aef01d449467bcf4641286b4. Thanks Aristotelis Mikropoulos for the report. Backport of 4483a9b12f295908e68b82d6599f460de943444f from main
2022-08-27[4.1.x] Fixed #33952 -- Reallowed creating reverse foreign key managers on ↵David Wobrock
unsaved instances. Thanks Claude Paroz for the report. Regression in 7ba6ebe9149ae38257d70100e8bfbfd0da189862. Backport of 806e9e2d0dcf8f58e376fb7e2a8b9771e2a9ce16 from main
2022-08-26[4.1.x] Fixed #33953 -- Reverted "Fixed #33201 -- Made RenameModel operation ↵Iuri de Silvio
a noop for models with db_table." Regression in afeafd6036616bac8263d762c1610f22241c0187. This reverts afeafd6036616bac8263d762c1610f22241c0187. Thanks Timothy Thomas for the report. Backport of 166a3b32632c141541d1c3f0eff18e1d8b389404 from main
2022-08-25[4.1.x] Fixed #33938 -- Fixed migration crash for m2m with a through model ↵Simon Charette
in another app. Regression in aa4acc164d1247c0de515c959f7b09648b57dc42. Thanks bryangeplant for the report. Backport of 71902e0d9f93670c4f93ff9d66095b0e571be74b from main
2022-08-17[4.1.x] Fixed #33932 -- Fixed altering AutoFields to OneToOneField on ↵Benoît Vinot
PostgreSQL. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. Backport of e3cb8bcb7d2a2d392e726ee1f7e32a8d9038e14c from main
2022-08-12[4.1.x] Fixed #33919 -- Fixed adding AutoFields on PostgreSQL.Mariusz Felisiak
Thanks Jack Calvin Brown for the report. Regression in 2eea361eff58dd98c409c5227064b901f41bd0d6. Backport of 5c803bc0702511c8bc05e9db600367a465514f82 from main
2022-08-09[4.1.x] Fixed #33902 -- Fixed Meta.constraints validation crash with F() ↵Mariusz Felisiak
expressions. Thanks Adam Zahradník for the report. Bug in 667105877e6723c6985399803a364848891513cc. Backport of 63884829acd207404f2a5c3cc1d6b4cd0a822b70 from main
2022-08-08[4.1.x] Fixed #33899 -- Fixed migration crash when removing indexed field on ↵Fiza Ashraf
SQLite 3.35.5+. Regression in 702819227fd0cdd9b581cd99e11d1561d51cbeb. Thanks cessor for the report. Backport of c0beff21239e70cbdcc9597e5be09e505bb8f76c from main
2022-08-06[4.1.x] Fixed #33898 -- Fixed Window() expression crash with ArrayAgg().Mariusz Felisiak
Thanks Kia for the report. Regression in e06dc4571ea9fd5723c8029959b95808be9f8812. Backport of fd93db97c7228b16a4f92f97ef05b0d72418d952 from main
2022-08-01[4.1.x] Fixed collation tests on MySQL 8.0.30+.Mariusz Felisiak
The utf8_ collations are renamed to utf8mb3_* on MySQL 8.0.30+. Backport of 88dba2e3fd64b64bcf4fae83b256b4f6f492558f from main
2022-07-09[4.1.x] Refs CVE-2022-34265 -- Unified DatabaseOperations._convert_*_to_tz() ↵Mariusz Felisiak
hook names. Backport of 5e2f4ddf2940704a26a4ac782b851989668d74db from main
2022-07-08[4.1.x] Fixed #33829 -- Made BaseConstraint.deconstruct() and equality ↵Stéphane "Twidi" Angel
handle violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc. Backport of ccbf714ebeff51d1370789e5e487a978d0e2dbfb from main
2022-07-06[4.1.x] Refs CVE-2022-34265 -- Properly escaped Extract() and Trunc() ↵Simon Charette
parameters. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Backport of 877c800f255ccaa7abde1fb944de45d1616f5cc9 from main
2022-07-04[4.1.x] Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) ↵Mariusz Felisiak
against SQL injection. Thanks Takuto Yoshikai (Aeye Security Lab) for the report.
2022-06-27[4.1.x] Fixed #33796 -- Fixed ordered combined queryset crash when used in ↵Mariusz Felisiak
subquery on PostgreSQL and MySQL. Thanks Shai Berger for the report. Regression in 30a01441347d5a2146af2944b29778fa0834d4be. Backport of 44ffd8d06fabc07d8333f31439e8dd39ea87329b from main
2022-06-23[4.1.x] Fixed #33799, Refs #31685 -- Added parameters for updating conflicts ↵DhruvaPatil98
to QuerySeta.abulk_create(). Backport of c627226d05dd52aef59447dcfb29cec2c2b11b8a from main
2022-06-17[4.1.x] Fixed #28897 -- Fixed QuerySet.update() on querysets ordered by ↵David Wobrock
annotations. Backport of 3ef37a5245015f69a9b9f884ebc289a35d02c5f6 from main
2022-06-17[4.1.x] Refs #28897 -- Added test for QuerySet.update() on querysets ordered ↵David Wobrock
by inline m2m annotation. Backport of f4680a112d01d85540411673eade31f37712d0a6 from main
2022-06-13[4.1.x] Fixed #33773 -- Made Index with multiple fields respect ↵Bruce Cutler
DEFAULT_INDEX_TABLESPACE. Thanks to Simon Charette for locating where issue lay. Backport of de1c8320cedee5d4f91b153a7fe82eb63876470f from main
2022-06-02[4.1.x] Fixed #31788 -- Fixed migration optimization after altering field to ↵David Wobrock
ManyToManyField. This makes AddField() used for altering to ManyToManyField, dependent on the prior RemoveField. Backport of 798b6c23ee52c675dd0f0e233c50cddd7ff15657 from main
2022-05-26[4.1.x] Fixed #23740 -- Fixed removing unique_together constraint if exists ↵David Wobrock
primary key/unique constraint on the same field. Backport of b949e40e8c32a393f480399e2d70b653108098b6 from main
2022-05-26[4.1.x] Refs #23740 -- Added BaseDatabaseSchemaEditor._unique_constraint_name().David Wobrock
Backport of 115a978fceac4c4de2f9fc70ce19001c3f6d6918 from main
2022-05-19[4.1.x] Fixed #33705 -- Fixed crash when using IsNull() lookup in filters.David Wobrock
Thanks Florian Apolloner for the report. Thanks Simon Charette for the review. Backport of 9f5548952906c6ea97200c016734b4f519520a64 from main
2022-05-17[4.1.x] Refs #33379 -- Fixed minimum supported version of MariaDB.Mariusz Felisiak
Backport of 2cec020f5bc462954d902bdad1a5955852cecff6 from main
2022-05-17[4.1.x] Updated source translation catalogs.Mariusz Felisiak
2022-05-17Refs #27064 -- Made migrations generate RenameIndex operations when moving ↵David Wobrock
indexes from index_together to Meta.indexes.
2022-05-17Refs #27064 -- Refactored out MigrationAutodetector.create_renamed_fields().David Wobrock
2022-05-16Refs #27064 -- Made migrations generate RenameIndex operations when renaming ↵David Wobrock
Meta.indexes.
2022-05-16Fixed #33710 -- Made RenameIndex operation a noop when the old and new name ↵David Wobrock
match.
2022-05-13Added backward compatibility test for ConnectionHandler.databases property.Nick Pope
The ConnectionHandler.databases property is no longer used within Django, but it is maintained for backward compatibility with 3rd party packages that have used this private API in the past.
2022-05-13Fixed typo in Query.clone()'s docstring.非法操作
2022-05-12Refs #27064 -- Added RenameIndex migration operation.David Wobrock
2022-05-12Made closing in connection handlers more DRY.Nick Pope
2022-05-12Fixed #33543 -- Deprecated passing nulls_first/nulls_last=False to OrderBy ↵Mariusz Felisiak
and Expression.asc()/desc(). Thanks Allen Jonathan David for the initial patch.
2022-05-12Fixed #29538 -- Fixed crash of ordering by related fields when Meta.ordering ↵Ed Rivas
contains expressions. Thanks Simon Charette for the review.
2022-05-10Fixed #30581 -- Added support for Meta.constraints validation.Gagaro
Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
2022-05-04Fixed #25105 -- Checked deferred constraints before updating rows on PostgreSQL.David Wobrock
2022-05-04Refs #30581 -- Added Q.check() hook.Gagaro
2022-05-04Refs #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-04Fixed #33675 -- Dropped support for PostgreSQL 10 and PostGIS 2.4.Mariusz Felisiak
2022-05-03Refs #30581 -- Added Q.flatten().Gagaro
2022-05-03Fixed #29854 -- Made _all_related_fields() return deterministically ordered ↵Collin Anderson
fields. Thanks to Rick Yang and Baptiste Mispelon for the investigation.
2022-05-02Refs #33646 -- Made QuerySet.raw() async-compatible.Mariusz Felisiak
2022-05-02Refs #33646 -- Added RawModelIterable.Mariusz Felisiak