Killing all sql_paging_limit() uses

Merged from MOODLE_17_STABLE
This commit is contained in:
stronk7 2006-10-22 22:49:54 +00:00
parent cb4c207832
commit 789ab3ff24

View File

@ -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.