]> git.mjollnir.org Git - moodle.git/commitdiff
Killing all sql_paging_limit() uses
authorstronk7 <stronk7>
Sun, 22 Oct 2006 22:58:29 +0000 (22:58 +0000)
committerstronk7 <stronk7>
Sun, 22 Oct 2006 22:58:29 +0000 (22:58 +0000)
Merged from MOODLE_17_STABLE

lib/db/migrate2utf8.php

index dffbc9f89be030d1a2a60689d552c011ef34b88f..f6af8e4a7e883992ec9e44ac88591883f9f8323c 100755 (executable)
@@ -71,8 +71,8 @@ function migrate2utf8_user($fields, $crash, $debug, $maxrecords, $done, $tablest
     }
 
     while ($counter < $totalrecords) {    //while there is still something
-        $SQL = 'SELECT * FROM '.$CFG->prefix.'user ORDER BY id ASC '.sql_paging_limit($counter, $recordsetsize);
-        if ($records = get_records_sql($SQL)) {
+        $SQL = 'SELECT * FROM '.$CFG->prefix.'user ORDER BY id ASC';
+        if ($records = get_records_sql($SQL, $counter, $recordsetsize)) {
             foreach ($records as $record) {
 
             //if we are up this far, either no crash, or crash with same table, field name.