mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Killing all sql_paging_limit() uses
Merged from MOODLE_17_STABLE
This commit is contained in:
parent
cb4c207832
commit
789ab3ff24
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user