summaryrefslogtreecommitdiff
path: root/docs/releases/3.0.txt
diff options
context:
space:
mode:
authorJohannes Hoppe <info@johanneshoppe.com>2019-07-24 08:42:41 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-09 10:51:14 +0200
commit7254f1138d9c51fa558229c39c9559b369c4278a (patch)
treefc375187018082446c90deb772ac3ce96406c13b /docs/releases/3.0.txt
parent736e7d44de395b867011ff9237dc5fdcfd28ee66 (diff)
Refs #29444 -- Allowed returning multiple fields from INSERT statements on PostgreSQL.
Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and Mariusz Felisiak for reviews.
Diffstat (limited to 'docs/releases/3.0.txt')
-rw-r--r--docs/releases/3.0.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt
index 1fc64a442d..11fb46b6a5 100644
--- a/docs/releases/3.0.txt
+++ b/docs/releases/3.0.txt
@@ -448,14 +448,20 @@ backends.
:class:`~django.db.models.DateTimeField` in ``datetime_cast_date_sql()``,
``datetime_extract_sql()``, etc.
-* ``DatabaseOperations.return_insert_id()`` now requires an additional
- ``field`` argument with the model field.
-
* Entries for ``AutoField``, ``BigAutoField``, and ``SmallAutoField`` are added
to ``DatabaseOperations.integer_field_ranges`` to support the integer range
validators on these field types. Third-party backends may need to customize
the default entries.
+* ``DatabaseOperations.fetch_returned_insert_id()`` is replaced by
+ ``fetch_returned_insert_columns()`` which returns a list of values returned
+ by the ``INSERT … RETURNING`` statement, instead of a single value.
+
+* ``DatabaseOperations.return_insert_id()`` is replaced by
+ ``return_insert_columns()`` that accepts a ``fields``
+ argument, which is an iterable of fields to be returned after insert. Usually
+ this is only the auto-generated primary key.
+
:mod:`django.contrib.admin`
---------------------------