#17653: using id = 0 on get_or_create
-------------------------------------+-------------------------------------
     Reporter:  sylvain.lebon@…      |                    Owner:
         Type:  Bug                  |  krzysiumed
    Component:  Database layer       |                   Status:  assigned
  (models, ORM)                      |                  Version:  1.3
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by charettes):

 FYI django's db backend features already keeps track of this misbehaviour
 for
 
[https://github.com/django/django/blob/master/django/db/backends/mysql/base.py#L151
 mysql] using the `allows_primary_key_0` feature. I haven't look where it's
 used but that's the reason why I did comment:1. It might be worth
 investigating where this flag is used.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17653#comment:7>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to