This is the followup to PR #146. I couldn't add more commits to that one because I used the SHA instead of a branch name.
I've added the unit tests you asked for.
Preserve paging information on subqueries.
Preserve orderBy on subqueries.
Can you please pull this?
Also broken is that the 'isForUpdate' field is not preserved on AbstractQuery.copy
@max-l @pbrant Any thoughts on this? It's got a test included, so if the rest of the suite passes it looks ok to me.
Works for me. IIRC (but only vaguely I'm afraid) there are situations where the PG grammar won't always let you provide a limit/offset without putting parens around the query, but if something like that does come up it can be fixed later.