Unfortunately fix from my last commit it not enough to handle more complicated queries.
This change should fix points 2 and 3 from this list but it also removes adding TOP statement if $offset is not set.
I know it looks realy messy but I can't figure out any other solution to handel queries with subqueries and ordering (such thing is generated after using Doctrine Paginator and ordering).
Updated doModifyLimitQuery in SQLServerPlatform to handle subqueries …
Updated regular expressions in doModifyLimitQuery
thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link: