BUGFIX: Remove an extraneous space from the generated queries so that SQLQueryTest passes

This commit is contained in:
Sam Minnee 2009-06-16 05:32:31 +00:00
parent 0585ef3908
commit ff739d1786

View File

@ -1038,7 +1038,7 @@ class MSSQLDatabase extends Database {
$firstCol = reset($sqlQuery->select);
$rowNumber = "ROW_NUMBER() OVER (ORDER BY $firstCol) AS Number";
}
$text = "SELECT * FROM ( SELECT $rowNumber, ";
$text = "SELECT * FROM ( SELECT $distinct$rowNumber, ";
$suffixText .= ") AS Numbered WHERE Number BETWEEN " . ($offset+1) ." AND " . ($offset+$limit)
. " ORDER BY Number";
$nestedQuery = true;