SQLCompiler.as_sql with_col_aliases

51 views
Skip to first unread message

Michael Manfre

unread,
Oct 12, 2012, 3:13:31 PM10/12/12
to django-d...@googlegroups.com
Is it safe to assume that the with_col_aliases argument of SQLCompiler.as_sql is intended to only be True when the query is a subquery? Those are the only usages I've found in the code.

MSSQL only supports ordering subqueries under a limited number of circumstances. To fix the SQL in django-mssql's compiler, I need a clear way of identifying when the query is a sub-query. If this is not a safe way of using with_col_aliases, is there another?

Regards,
Michael Manfre
Reply all
Reply to author
Forward
0 new messages