diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-03-21 21:50:54 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-08-28 20:44:21 +0200 |
| commit | 292b9e6fe8f23491680d9cc60f328562e2b1c823 (patch) | |
| tree | 73aab051ae88301c5911c60a69bb8e290b0a4c27 /docs | |
| parent | dc4ee9915228238bd24ce67645504f65eaf2f1fd (diff) | |
Refs #27222 -- Adapted RETURNING handling to be usable for UPDATE queries.
Renamed existing methods and abstractions used for INSERT … RETURNING
to be generic enough to be used in the context of UPDATEs as well.
This also consolidates SQL compliant implementations on
BaseDatabaseOperations.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/6.0.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt index 94376b9994..a9fe1873aa 100644 --- a/docs/releases/6.0.txt +++ b/docs/releases/6.0.txt @@ -402,6 +402,18 @@ backends. * :class:`~django.db.backends.base.schema.BaseDatabaseSchemaEditor` and PostgreSQL backends no longer use ``CASCADE`` when dropping a column. +* ``DatabaseOperations.return_insert_columns()`` and + ``DatabaseOperations.fetch_returned_insert_rows()`` methods are renamed to + ``returning_columns()`` and ``fetch_returned_rows()``, respectively, to + denote they can be used in the context ``UPDATE … RETURNING`` statements as + well as ``INSERT … RETURNING``. + +* The ``DatabaseOperations.fetch_returned_insert_columns()`` method is removed + and the ``fetch_returned_rows()`` method replacing + ``fetch_returned_insert_rows()`` expects both a ``cursor`` and + ``returning_params`` to be provided just like + ``fetch_returned_insert_columns()`` did. + Dropped support for MariaDB 10.5 -------------------------------- |
