mirror of
https://github.com/moodle/moodle.git
synced 2025-03-06 16:59:56 +01:00
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:
parent
baa5955613
commit
78268862d3
@ -273,7 +273,7 @@ function quiz_report_grade_bands($bandwidth, $bands, $quizid, $userids=array()){
|
||||
WHERE qg.quiz = q.id " .
|
||||
($usql?"AND qg.userid $usql ":'') .
|
||||
"AND qg.quiz = ?
|
||||
GROUP BY band
|
||||
GROUP BY FLOOR(qg.grade/$bandwidth)
|
||||
ORDER BY band";
|
||||
$params[] = $quizid;
|
||||
$data = $DB->get_records_sql_menu($sql, $params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user