Re: Subquery support in DB lookup

2005-12-03 Thread Russell Keith-Magee
Point taken with the criticism; it isn't a particularly compact syntax. I wasn't really proposing it as an ideal solution; more of a solution that could be achieved with very little coding effort. It just struck me as an elegant internal symmetry that wasn't being exploited. However, the reason I

Re: Subquery support in DB lookup

2005-12-02 Thread oggie rob
I think the biggest criticism to an idea like this is that it introduces a lot of complexity without solving all the problems you need to solve. For example, what if you need to form a join with another table that goes beyond polls_choices. An alternative is to generate some other function that di

Subquery support in DB lookup

2005-12-01 Thread Russell Keith-Magee
Hi all, I originally posted this in django-users as the tail end of a longer discussion, but in retrospect, this is probably a better forum. I have been looking at the code for function_get_sql_clause() recently while working on a patch for quoting behaviour for subselects in "tables" clauses (n