Hi,

Can someone (Mike?) give me a hand with this, I've hit the limits of my 
understanding of the query compiler.

The patch I've done on #638 (mostly copied from Oracle) creates a 
subquery with row_number if there is an OFFSET. It aliases the query, 
because MSSQL is funny about that, and it also attempts to move ORDER BY 
from the inner to outer query (again, MSSQL is funny). Only problem is 
that it doesn't quite pick up the correct labelled name. Uncomment this 
line in the patch to see the problem:
#limitselect._order_by_clause = select._order_by_clause

Any ideas would be a help (and a query compiler 101 document would be fab!)

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to