#34698: Allow returning IDs in QuerySet.bulk_create() when updating conflicts.
-------------------------------------+-------------------------------------
Reporter: Thomas C | Owner: Thomas C
Type: New feature | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak):
Replying to [comment:2 Thomas C]:
> Sure I will.
Thanks. About tests, it should be enough to add some assertions to
existing tests: `_test_update_conflicts_two_fields()`,
`test_update_conflicts_unique_fields_pk()`,
`_test_update_conflicts_unique_two_fields()`, `_test_update_conflicts()`,
and `test_update_conflicts_unique_fields_update_fields_db_column()` when
`connection.features.can_return_rows_from_bulk_insert` is True.
--
Ticket URL: <https://code.djangoproject.com/ticket/34698#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701892fa242ab-235f2116-4178-4e44-b876-1d17e0595b80-000000%40eu-central-1.amazonses.com.