#34177: QuerySet.bulk_create() crashes on "pk" in unique_fields.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: Mariusz
| Felisiak
Type: Bug | Status: assigned
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Mariusz Felisiak:
Old description:
> `QuerySet.bulk_create()` crashes on `"pk"` in `unique_fields` which
> should be allowed.
>
> Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.
New description:
`QuerySet.bulk_create()` crashes on `"pk"` in `unique_fields` which should
be allowed.
{{{
File "/django/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: column "pk" does not exist
LINE 1: ...S (3127, 3, 3, 'c'), (3128, 4, 4, 'd') ON CONFLICT("pk") DO ...
}}}
Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34177#comment:2>
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/010701849f52dba8-4bc5b7dc-f946-43d8-bdc2-9f68e5591eac-000000%40eu-central-1.amazonses.com.