#29679: select_related not working as expected with Oracle 12C and Python 3.6
-------------------------------------+-------------------------------------
     Reporter:  zap_kid              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  2.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     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 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:1>
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.9ea391e4fa42a91123540e1c58c9ec5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to