program/lib/Roundcube/rcube_db_mssql.php | ●●●●● patch | view | raw | blame | history |
program/lib/Roundcube/rcube_db_mssql.php
@@ -110,6 +110,10 @@ $query = preg_replace('/^SELECT\s/i', 'SELECT TOP ' . ($limit + $offset) . ' ', $query); if (!$offset) { return $query; } $query = 'SELECT * FROM (SELECT TOP ' . $limit . ' * FROM (' . $query . ') AS inner_tbl'; if ($orderby !== false) { $query .= ' ORDER BY ' . $order . ' ';