#29679: select_related() crashes with "ORA-00918: column ambiguously defined" on
Oracle
-------------------------------------+-------------------------------------
     Reporter:  zap_kid              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  2.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  orm, oracle,         |             Triage Stage:
  select_related                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by zap_kid):

 Thanks for taking a look. I made a dummy project and can't reproduce it
 either. Something else is going on in my project. I'll keep digging.
 Replying to [comment:1 Tim Graham]:
 > I can't reproduce the crash. I tried:
 >
 > `ModelA.objects.filter(example_field=1).select_related('modelB_field')`
 >
 > which gives this query:
 >
 > {{{
 > SELECT "BASIC_MODELA"."ID", "BASIC_MODELA"."MODELB_FIELD_ID",
 "BASIC_MODELA"."EXAMPLE_FIELD", "BASIC_MODELB"."ID",
 "BASIC_MODELB"."EXAMPLE_FIELD"
 > FROM "BASIC_MODELA" INNER JOIN "BASIC_MODELB" ON
 ("BASIC_MODELA"."MODELB_FIELD_ID" = "BASIC_MODELB"."ID")
 > WHERE "BASIC_MODELA"."EXAMPLE_FIELD" = 1
 > }}}
 >
 > Can you give more precise steps to reproduce? Ideally, you could also
 [https://docs.djangoproject.com/en/dev/internals/contributing/triaging-
 tickets/#bisecting-a-regression bisect] to find the commit where the
 behavior changed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29679#comment:4>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.3197ccae498d2c82a01e168013b7b9e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to