max-l/Squeryl — pull request #146 by justinp (2012-05-17 03:03:10+00:00)
Title: Preserve orderBy and page on subqueries

Max,

This is something I ran into when trying to write a query with a subquery that only grabbed the first N records. It looks like the orderBy clause was being dropped intentionally which makes sense unless it's in the context of a query with a page. It looks like the page may have just never been added to the copy since the similarly handled "distinct" is copied as well.

Thanks,
-Justin