#34634: Creating objects with nested MTI crashes.
-------------------------------------+-------------------------------------
     Reporter:  Mariusz Felisiak     |                    Owner:  Akash
                                     |  Kumar Sen
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Akash Kumar Sen):

 Replying to [comment:10 Simon Charette]:
 > {{{
 > 1. INSERT INTO "model_inheritance_place" ("name", "address") VALUES ('',
 '') RETURNING "model_inheritance_place"."id"
 > }}}
 The values are empty strings in the query 1, So I don't think this gives
 the expected results. The name and address should have their respective
 values instead of empty strings.

 >It feels like ItalianRestaurantManyParents should not be allowed to be
 defined in the first place since place_ptr conflicts.
 Along with the field {{{place_ptr}}} , the following fields, i.e all the
 fields of {{{Place}}} model seems to be
 {{{<django.db.models.fields.AutoField: id>,
 <django.db.models.fields.CharField: name>,
 <django.db.models.fields.CharField: address>}}} present twice without any
 conflicts or errors. So I think it would make sense if we disallow the
 case-4 according to comment:8

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34634#comment:12>
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/01070188b87e4904-1b044829-5b3a-4758-a20f-36ecc26532ba-000000%40eu-central-1.amazonses.com.

Reply via email to