Opened 18 months ago

Last modified 18 months ago

#34177 closed Bug

QuerySet.bulk_create() crashes on "pk" in unique_fields. — at Version 2

Reported by: Mariusz Felisiak Owned by: Mariusz Felisiak
Component: Database layer (models, ORM) Version: 4.1
Severity: Release blocker Keywords:
Cc: Chih Sean Hsu, Carlton Gibson Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Mariusz Felisiak)

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.

Change History (2)

comment:1 by Mariusz Felisiak, 18 months ago

Has patch: set

comment:2 by Mariusz Felisiak, 18 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top