fix modifying limit and offset for statements with subqueries on SQL Server
Merge branch 'DBAL-787' into 2.4