Merge branch 'pr4997'
Closes #4997
Tweak sqlsrv platform to stop being too clever when building limit/offset clauses.  With this change it can be used with PDO dblib
Simplify generated paging SQL for SQL Server.  Update unit tests to reflect new output
Merge branch 'master' into develop