﻿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
7907	tables argument of QuerySet.extra should be allow a subquery.	bear330	nobody	"If I call extra with tables parameter:


{{{
queryset.extra(tables=['(select * from table) as k'])
}}}


The result SQL will be:


{{{
select ........ from `self_table`, `(select * from table) as k`
}}}


the subquery will be invalid.

That will be nice if we can determine whether we need qn or not.
For a normal table:

{{{

queryset.extra(tables=[qn('tableA'), qn('tableB')])
}}}


But for a subquery I can just omit qn to do that.

Thanks.
"	New feature	closed	Database layer (models, ORM)	dev	Normal	wontfix	queryset, extra, qn, subquery, post-qsrf	sciyoshi@… shaun@…	Design decision needed	1	1	1	0	0	0
