Skip to content

Commit

Permalink
quiz reports: MDL-16948 SQL does not work in Oracle - you are not all…
Browse files Browse the repository at this point in the history
…owed to refer to output column names in GROUP BY. Fix thanks to Francois Marier.
  • Loading branch information
tjhunt committed Oct 21, 2008
1 parent d7d10cd commit ec3d11d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/report/reportlib.php
Expand Up @@ -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();
Expand Down

0 comments on commit ec3d11d

Please sign in to comment.