Re: [Django] #34171: QuerySet.bulk_create() crashes on mixed case columns in unique_fields/update_fields.

3 views
Skip to first unread message

Django

unread,
Nov 22, 2022, 2:52:35 AM11/22/22
to django-...@googlegroups.com
#34171: QuerySet.bulk_create() crashes on mixed case columns in
unique_fields/update_fields.
-------------------------------------+-------------------------------------
Reporter: Joshua Brooks | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | 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 Bhuvnesh):

I guess no one is working on this one so i'll just open a quick PR.

--
Ticket URL: <https://code.djangoproject.com/ticket/34171#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 22, 2022, 2:52:39 AM11/22/22
to django-...@googlegroups.com
#34171: QuerySet.bulk_create() crashes on mixed case columns in
unique_fields/update_fields.
-------------------------------------+-------------------------------------
Reporter: Joshua Brooks | Owner: Bhuvnesh
Type: Bug | Status: assigned

Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bhuvnesh):

* owner: nobody => Bhuvnesh
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/34171#comment:3>

Django

unread,
Nov 22, 2022, 8:51:11 AM11/22/22
to django-...@googlegroups.com
#34171: QuerySet.bulk_create() crashes on mixed case columns in
unique_fields/update_fields.
-------------------------------------+-------------------------------------
Reporter: Joshua Brooks | Owner: Bhuvnesh
Type: Bug | Status: assigned
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* has_patch: 0 => 1
* stage: Accepted => Ready for checkin


Comment:

[https://github.com/django/django/pull/16315 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/34171#comment:4>

Django

unread,
Nov 22, 2022, 2:05:08 PM11/22/22
to django-...@googlegroups.com
#34171: QuerySet.bulk_create() crashes on mixed case columns in
unique_fields/update_fields.
-------------------------------------+-------------------------------------
Reporter: Joshua Brooks | Owner: Bhuvnesh
Type: Bug | Status: closed

Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"4035bab56f2862a25cd7bfba41a84e58672cb1cc" 4035bab5]:
{{{
#!CommitTicketReference repository=""
revision="4035bab56f2862a25cd7bfba41a84e58672cb1cc"
Fixed #34171 -- Fixed QuerySet.bulk_create() on fields with db_column in
unique_fields/update_fields.

Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.

Thanks Joshua Brooks for the report.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34171#comment:5>

Django

unread,
Nov 22, 2022, 2:05:15 PM11/22/22
to django-...@googlegroups.com
#34171: QuerySet.bulk_create() crashes on mixed case columns in
unique_fields/update_fields.
-------------------------------------+-------------------------------------
Reporter: Joshua Brooks | Owner: Bhuvnesh
Type: Bug | Status: closed
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"170322451acc18ff3311c68db1b9b1d3f7cb7913" 1703224]:
{{{
#!CommitTicketReference repository=""
revision="170322451acc18ff3311c68db1b9b1d3f7cb7913"
[4.1.x] Fixed #34171 -- Fixed QuerySet.bulk_create() on fields with
db_column in unique_fields/update_fields.

Bug in 0f6946495a8ec955b471ca1baaf408ceb53d4796.

Thanks Joshua Brooks for the report.

Backport of 4035bab56f2862a25cd7bfba41a84e58672cb1cc from main
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34171#comment:6>

Reply all
Reply to author
Forward
0 new messages