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

admin/utfdbmigrate.php

index fd5616d45879f613a02f35bff2ea8b6c6f08a08b..f2ef9bce99fc5da85496005012589ac2884fe426 100755 (executable)
@@ -594,8 +594,8 @@ function db_migrate2utf8(){   //Eloy: Perhaps some type of limit parameter here
                          * converting each record *
                          **************************/
                         while(($counter < $totalrecords) and ($fieldname !='dummy') and ($method!='NO_CONV')) {    //while there is still something
-                            $SQL = 'SELECT * FROM '.$prefix.$dbtablename.' ORDER BY id ASC '.sql_paging_limit($counter, $recordsetsize);
-                            if ($records = get_records_sql($SQL)) {
+                            $SQL = 'SELECT * FROM '.$prefix.$dbtablename.' 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.