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

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/56Tv7DEP3EkJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to