mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-15702 SQL efficiency fix Merged from 1.9
This commit is contained in:
parent
84df43de21
commit
4ea69f88f3
@ -514,7 +514,7 @@
|
||||
continue;
|
||||
}
|
||||
$tables .= ', {data_content} c'.$key.' ';
|
||||
$where .= ' AND c'.$key.'.recordid = r.id';
|
||||
$where .= ' AND c'.$key.'.recordid = r.id AND c'.$key.'.fieldid = '.$key;
|
||||
$searchselect .= ' AND ('.$val->sql.') ';
|
||||
$params = array_merge($params, $val->params);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user