MDL-15702 SQL efficiency fix Merged from 1.9

This commit is contained in:
moodler 2008-07-18 07:52:36 +00:00
parent 84df43de21
commit 4ea69f88f3

View File

@ -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);
}