quiz reports: MDL-16948 SQL does not work in Oracle - you are not allowed to refer to output column names in GROUP BY. Fix thanks to Francois Marier.

This commit is contained in:
tjhunt
2008-10-21 05:45:28 +00:00
parent d7d10cd3d4
commit ec3d11dd00
+1 -1
View File
@@ -188,7 +188,7 @@ function quiz_report_grade_bands($bandwidth, $bands, $quizid, $useridlist=''){
{$CFG->prefix}quiz q
WHERE qg.quiz = q.id AND qg.quiz = $quizid
".($useridlist?"AND qg.userid IN ($useridlist) ":'')."
GROUP BY band
GROUP BY FLOOR(qg.grade/$bandwidth)
ORDER BY band";
if (!$data = get_records_sql_menu($sql)){
$data= array();