Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.
--
Ticket URL: <https://code.djangoproject.com/ticket/34177>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16317 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34177#comment:1>
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>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34177#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"7d5329852f19c6ae78c6f6f3d3e41835377bf295" 7d53298]:
{{{
#!CommitTicketReference repository=""
revision="7d5329852f19c6ae78c6f6f3d3e41835377bf295"
Fixed #34177 -- Fixed QuerySet.bulk_create() crash on "pk" in
unique_fields.
Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34177#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"3b0a8ea2993a2b011ad57304b3f978947adb5981" 3b0a8ea]:
{{{
#!CommitTicketReference repository=""
revision="3b0a8ea2993a2b011ad57304b3f978947adb5981"
[4.1.x] Fixed #34177 -- Fixed QuerySet.bulk_create() crash on "pk" in
unique_fields.
Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.
Backport of 7d5329852f19c6ae78c6f6f3d3e41835377bf295 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34177#comment:5>