Current regexp present in mssql/sqlsrv drivers, used to apply for the TOP keyword when using limits in the query fails to match properly if there are multiple spaces (it matches only one space).
Going to change it as fas as I got at least one case (in mod/data/view.php), leading to garbled SQL:
SELECT TOP 10 DISTINCT ==> wrong
and it should be:
SELECT DISTINCT TOP 10 ==> correct
Will add test for it too. Ciao