﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29679	"select_related() crashes with ""ORA-00918: column ambiguously defined"" on Oracle"	zap_kid	nobody	"Suppose I have `ModelA` and `ModelB` where `ModelA` has a `ForeignKey` field `model_b` with `ModelB` and in addition `ModelA` and `ModelB` share another non-foreign key field with the same name. Then `ModelA.objects.filter(...).select_related('model_b')` throws `django.db.utils.DatabaseError: ORA-00918: column ambiguously defined` even though Django is generating the correct `SQL`.  See [https://stackoverflow.com/questions/51879477/django-2-1-and-select-related]

discovered using Oracle 12C and Python 3.6"	Bug	closed	Database layer (models, ORM)	2.1	Normal	needsinfo	orm, oracle, select_related		Unreviewed	0	0	0	0	0	0
