Michael Manfre
unread,Oct 12, 2012, 3:13:31 PM10/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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